Selaa lähdekoodia

Code editor: select next occurrence after Replace

lupoDharkael 6 vuotta sitten
vanhempi
commit
6f32fc68e4
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      editor/code_editor.cpp

+ 3 - 1
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() {