about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-14 15:32:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-14 15:32:04 -0700
commit6706c69407c98fae906956821bb3b6fb69b58fd6 (patch)
tree9af683f8e4648301498a3bd44857ec004c5cf7f2
parentaaf9984039d901c53209b08d6853f6e5ebb3f7bf (diff)
downloadmu-6706c69407c98fae906956821bb3b6fb69b58fd6.tar.gz
.
-rw-r--r--browse-slack/environment.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index ca3d827d..05967c59 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -2,7 +2,9 @@ type environment {
   search-terms: (handle gap-buffer)
   tabs: (handle array tab)
   current-tab-index: int  # index into tabs
+  # search mode
   cursor-in-search?: boolean
+  # channel mode
   cursor-in-channels?: boolean
   channel-cursor-index: int
 }
@@ -295,6 +297,7 @@ fn render-search-input screen: (addr screen), _env: (addr environment) {
   }
 }
 
+# not used in search mode
 fn render-menu screen: (addr screen), _env: (addr environment) {
   var env/edi: (addr environment) <- copy _env
   var cursor-in-channels?/eax: (addr boolean) <- get env, cursor-in-channels?