about summary refs log tree commit diff stats
path: root/browse-slack
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-13 18:00:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-13 18:00:59 -0700
commitbaf6c7545f349db644e6a3f235b7854c4b1b0b21 (patch)
tree739f03942d80c841a134f4f620075d07e802fbc3 /browse-slack
parentd5f9329b65f4677006b9db1157c272339302b094 (diff)
downloadmu-baf6c7545f349db644e6a3f235b7854c4b1b0b21.tar.gz
disquieting bug: typing search terms is unreliable
Diffstat (limited to 'browse-slack')
-rw-r--r--browse-slack/environment.mu4
1 files changed, 4 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index 158275b0..4e390880 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -227,6 +227,10 @@ 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