about summary refs log tree commit diff stats
path: root/browse-slack
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-13 23:06:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-13 23:06:46 -0700
commit3b1017dae550ae4506a16667dee8d434c0f6e02a (patch)
tree598cf3bdf5c7cdcbb760410d7eb6010f89e276e6 /browse-slack
parent82a223f58f40cb480e6f64ee08a97264cf07d7a0 (diff)
downloadmu-3b1017dae550ae4506a16667dee8d434c0f6e02a.tar.gz
.
Bug in channel view.
Diffstat (limited to 'browse-slack')
-rw-r--r--browse-slack/environment.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index 756cdbe5..b52087ac 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -814,6 +814,7 @@ fn new-channel-tab _env: (addr environment), channel-index: int, _channels: (add
   var curr-channel/eax: (addr channel) <- index channels, curr-channel-offset
   var curr-channel-posts-first-free-addr/eax: (addr int) <- get curr-channel, posts-first-free
   var curr-channel-final-post-index/eax: int <- copy *curr-channel-posts-first-free-addr
+  curr-channel-final-post-index <- decrement
   var dest/edi: (addr int) <- get current-tab, item-index
   copy-to *dest, curr-channel-final-post-index
 }