diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-28 12:09:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-28 12:09:49 +0200 |
commit | f5c034a2d4e854d0e9ea174b9d6ba2e7a53e4b2e (patch) | |
tree | 45f66c64a07d6ad69c2879f37dbd7677947ebaf1 | |
parent | a5bd40aa48c40387ef431a08e6f6fe3aa3205a20 (diff) | |
parent | a86329c41e041c463e5584181583cd7a220c31b0 (diff) |
Merge pull request #30130 from Anutrix/search_highlight
Fixed search highlight when search text not found or empty
-rw-r--r-- | editor/code_editor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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")); } |