瀏覽代碼

Merge pull request #30130 from Anutrix/search_highlight

Fixed search highlight when search text not found or empty
Rémi Verschelde 6 年之前
父節點
當前提交
f5c034a2d4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/code_editor.cpp

+ 2 - 0
editor/code_editor.cpp

@@ -166,6 +166,8 @@ bool FindReplaceBar::_search(uint32_t p_flags, int p_from_line, int p_from_col)
 		result_line = -1;
 		result_col = -1;
 		text_edit->set_search_text("");
+		text_edit->set_search_flags(p_flags);
+		text_edit->set_current_search_result(line, col);
 		set_error(text.empty() ? "" : TTR("No Matches"));
 	}