diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-15 04:16:58 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-15 04:22:57 -0700 |
commit | 31ef51d92ae57c3896240a5b51eca07a59c4bb72 (patch) | |
tree | fbb140728859cef05a389c7d7676248ad6756758 /browse-slack | |
parent | 553d2ffc8eed9b5f9f2ebd52ee070ed1dcd0c5b6 (diff) | |
download | mu-31ef51d92ae57c3896240a5b51eca07a59c4bb72.tar.gz |
correct menu when first entering search mode
Test required.
Diffstat (limited to 'browse-slack')
-rw-r--r-- | browse-slack/environment.mu | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu index 3d206604..70892eae 100644 --- a/browse-slack/environment.mu +++ b/browse-slack/environment.mu @@ -376,6 +376,13 @@ 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-search?/eax: (addr boolean) <- get env, cursor-in-search? + compare *cursor-in-search?, 0/false + break-if-= + render-search-menu screen, env + return + } var cursor-in-channels?/eax: (addr boolean) <- get env, cursor-in-channels? compare *cursor-in-channels?, 0/false { |