diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-08-13 20:57:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-08-13 20:57:27 -0700 |
commit | 7465f6867b91b4c0137b7ec403d6a944217836fe (patch) | |
tree | 1257c50ac38bb1a509dbbc76e560d92fdc1ae359 | |
parent | 8773d0727872d2e6fa5a609b10323ae0bdbe6602 (diff) | |
download | mu-7465f6867b91b4c0137b7ec403d6a944217836fe.tar.gz |
this might explain the bug
I think I was just typing with the the status bar outside the display when it seemed to work. Easy to forget to hit '/' at the start. Particularly if it seems to work fine.
-rw-r--r-- | browse-slack/environment.mu | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu index 6aa3bd8a..93365f4a 100644 --- a/browse-slack/environment.mu +++ b/browse-slack/environment.mu @@ -229,10 +229,6 @@ fn render-search-input screen: (addr screen), _env: (addr environment) { var search-terms-ah/eax: (addr handle gap-buffer) <- get env, search-terms var search-terms/eax: (addr gap-buffer) <- lookup *search-terms-ah rewind-gap-buffer search-terms - { - var len/eax: int <- gap-buffer-length search-terms - draw-int32-decimal-wrapping-right-then-down-from-cursor-over-full-screen screen, len, 4/fg 0/bg - } var x/eax: int <- render-gap-buffer screen, search-terms, 0x2a/x 1/y, 1/render-cursor, 0xf/fg 0/bg { compare x, 0x4a/end-search @@ -638,7 +634,7 @@ fn update-environment _env: (addr environment), key: byte, users: (addr array us { var cursor-in-search?/eax: (addr boolean) <- get env, cursor-in-search? compare *cursor-in-search?, 0/false - break-if-!= + break-if-= update-search env, key, users, channels, items return } |