diff options
Diffstat (limited to 'find.c')
-rw-r--r-- | find.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -451,14 +451,14 @@ static void find_menu_frame(Ted *ted, Rect menu_bounds) { } static void find_open(Ted *ted, bool replace) { - if (!ted->find && ted->active_buffer) { + 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->replace = replace; + find_update(ted, true); } - ted->replace = replace; - find_update(ted, true); } static void find_close(Ted *ted) { |