about summary refs log tree commit diff stats
path: root/browse-slack
diff options
context:
space:
mode:
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
 }