From 5102b04327a6d91bafda0b705bf433f8916fcdcc Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 7 Mar 2021 14:23:51 -0500 Subject: fix ctrl+f then ctrl+shift+f --- find.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/find.c b/find.c index b682a2b..8775712 100644 --- a/find.c +++ b/find.c @@ -454,8 +454,9 @@ static void find_open(Ted *ted, bool replace) { if (ted->active_buffer && ted_is_regular_buffer(ted, ted->active_buffer)) { ted->prev_active_buffer = ted->active_buffer; ted_switch_to_buffer(ted, &ted->find_buffer); - ted->find = true; buffer_select_all(ted->active_buffer); + ted->find = true; + } else if (ted->find) { ted->replace = replace; find_update(ted, true); } -- cgit v1.2.3