浏览代码

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() {