소스 검색

Code editor: select next occurrence after Replace

lupoDharkael 6 년 전
부모
커밋
6f32fc68e4
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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() {