Merge pull request #30130 from Anutrix/search_highlight

Fixed search highlight when search text not found or empty
This commit is contained in:
Rémi Verschelde 2019-06-28 12:09:49 +02:00 committed by GitHub
commit f5c034a2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"));
}