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.mu7
1 files changed, 7 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index f7ae15e0..ad3646df 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -658,6 +658,13 @@ fn update-environment _env: (addr environment), key: byte, users: (addr array us
   {
     compare key, 0x1b/esc
     break-if-!=
+    {
+      var cursor-in-search?/eax: (addr boolean) <- get env, cursor-in-search?
+      compare *cursor-in-search?, 0/false
+      break-if-=
+      copy-to *cursor-in-search?, 0/false
+      return
+    }
     previous-tab env
     return
   }