summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 22:58:57 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 22:58:57 -0400
commit518851c0cde788a807e640377a7093ab4e8c5b5f (patch)
treee18c5296d7b5b5450689402f65be1bd91d89845d /find.c
parent913a5a5dfbcf6789a1ac6b8c32fb23cdcdde995b (diff)
more dynamic menus (menus are currently broken)
Diffstat (limited to 'find.c')
-rw-r--r--find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/find.c b/find.c
index d6eb406..759cd05 100644
--- a/find.c
+++ b/find.c
@@ -457,7 +457,7 @@ void find_menu_frame(Ted *ted, Rect menu_bounds) {
}
void find_open(Ted *ted, bool replace) {
- if (ted->menu) return;
+ if (menu_is_any_open(ted)) return;
if (ted->active_buffer == &ted->build_buffer) return;
if (!ted->find)
ted->prev_active_buffer = ted->active_buffer;