From c02d45e8d4ba86b032ad2387823cb174b91232a8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 13 Aug 2021 22:11:31 -0700 Subject: slack: escaping from search dialog --- browse-slack/environment.mu | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'browse-slack') 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 } -- cgit 1.4.1-2-gfad0