summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 15:38:14 +0000
committernicm <nicm>2020-05-16 15:38:14 +0000
commitd056144aa173c7b20d2a78e7d0a5134569e135db (patch)
tree1e44be13e44572dac128f128f004e25032433ae1 /menu.c
parent3fb4d4df43b9e2bb5661d3a820cdc26a38f09d9e (diff)
Try to search the entire history first for up to 200 ms so a search
count can be shown. If it takes too long, search the visible text only.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 07fc8fa8..62010a58 100644
--- a/menu.c
+++ b/menu.c
@@ -351,6 +351,7 @@ menu_display(struct menu *menu, int flags, struct cmdq_item *item, u_int px,
screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
if (~md->flags & MENU_NOMOUSE)
md->s.mode |= MODE_MOUSE_ALL;
+ md->s.mode &= ~MODE_CURSOR;
md->px = px;
md->py = py;