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.mu6
1 files changed, 6 insertions, 0 deletions
diff --git a/browse-slack/environment.mu b/browse-slack/environment.mu
index 5c8765ff..5c51ae9f 100644
--- a/browse-slack/environment.mu
+++ b/browse-slack/environment.mu
@@ -241,6 +241,12 @@ fn render-search-tab screen: (addr screen), _current-tab: (addr tab), _items: (a
   set-cursor-position 0/screen, 0x68/x 0/y
   draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "search", 7/fg 0/bg
   render-progress screen, i, *current-tab-search-items-first-free-addr
+  {
+    compare *current-tab-search-items-first-free-addr, 0x100/max-search-results
+    break-if-<
+    set-cursor-position 0/screen, 0x68/x 1/y
+    draw-text-wrapping-right-then-down-from-cursor-over-full-screen screen, "too many results", 4/fg 0/bg
+  }
   var items-data-ah/eax: (addr handle array item) <- get items, data
   var _items-data/eax: (addr array item) <- lookup *items-data-ah
   var items-data/edi: (addr array item) <- copy _items-data