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.
This commit is contained in:
nicm
2020-05-16 15:38:14 +00:00
parent 3fb4d4df43
commit d056144aa1
2 changed files with 91 additions and 41 deletions

1
menu.c
View File

@ -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;