diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-13 14:20:00 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-13 14:20:00 -0700 |
commit | 10efa3bf1d8725d17b740f938f021571a6bf6d39 (patch) | |
tree | 0481319f4893146b8a3dab56bf26c7dcbf9129d8 /browse-slack | |
parent | a67cf4b248c3092b386762455d2aedbba3f4a695 (diff) | |
download | mu-10efa3bf1d8725d17b740f938f021571a6bf6d39.tar.gz |
.
Diffstat (limited to 'browse-slack')
-rw-r--r-- | browse-slack/environment.mu | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu index d3e2a804..4c8fd659 100644 --- a/browse-slack/environment.mu +++ b/browse-slack/environment.mu @@ -535,10 +535,6 @@ fn next-item _env: (addr environment), users: (addr array user), channels: (addr fn previous-item _env: (addr environment), users: (addr array user), channels: (addr array channel), _items: (addr item-list) { var env/edi: (addr environment) <- copy _env - var items/esi: (addr item-list) <- copy _items - var items-data-first-free-a/ecx: (addr int) <- get items, data-first-free - var final-item-index/ecx: int <- copy *items-data-first-free-a - final-item-index <- decrement var tabs-ah/eax: (addr handle array tab) <- get env, tabs var _tabs/eax: (addr array tab) <- lookup *tabs-ah var tabs/edx: (addr array tab) <- copy _tabs @@ -546,6 +542,10 @@ fn previous-item _env: (addr environment), users: (addr array user), channels: ( var current-tab-index/eax: int <- copy *current-tab-index-a var current-tab-offset/eax: (offset tab) <- compute-offset tabs, current-tab-index var current-tab/edx: (addr tab) <- index tabs, current-tab-offset + var items/esi: (addr item-list) <- copy _items + var items-data-first-free-a/ecx: (addr int) <- get items, data-first-free + var final-item-index/ecx: int <- copy *items-data-first-free-a + final-item-index <- decrement var dest/eax: (addr int) <- get current-tab, item-index compare *dest, final-item-index break-if->= |