From 6f32fc68e47bf2fe50a1098ba418c9169d527d2c Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Mon, 14 Oct 2019 13:59:26 +0200 Subject: Code editor: select next occurrence after Replace --- editor/code_editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 4c31797c50..1a821ddd02 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -191,7 +191,9 @@ void FindReplaceBar::_replace() { results_count = -1; } - search_current(); + if (!search_current()) { + search_next(); + } } void FindReplaceBar::_replace_all() { -- cgit v1.2.3