From a86329c41e041c463e5584181583cd7a220c31b0 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 27 Jun 2019 22:44:14 +0530 Subject: Fixed search highlight when search text not found or empty --- editor/code_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 848921d870..ed50c7914e 100644 --- a/editor/code_editor.cpp +++ b/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")); } -- cgit v1.2.3