diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-07 14:23:51 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-07 14:23:51 -0500 |
commit | 5102b04327a6d91bafda0b705bf433f8916fcdcc (patch) | |
tree | f958d33e2d4178c796106168cea5b5e1519c09af | |
parent | a47ac4affa33ec43b9073f5c154879185d5e9fb7 (diff) |
fix ctrl+f then ctrl+shift+f
-rw-r--r-- | find.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |