diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2019-11-15 09:47:27 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2019-11-15 09:48:58 -0300 |
commit | 1c5cfb9bfda192a37c00e4d6b2b4ef8c5d8c35c9 (patch) | |
tree | 1e65c15e8b762f62c34831077c93c0a489098d45 /editor | |
parent | 98caeb635c2e4d48e0d6d6dbd82af183ab83f894 (diff) |
Make the replaced results appear in the matches counter
Diffstat (limited to 'editor')
-rw-r--r-- | editor/code_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 16780a795f..0a8a31207a 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -277,7 +277,8 @@ void FindReplaceBar::_replace_all() { } text_edit->set_v_scroll(vsval); - set_error(vformat(TTR("Replaced %d occurrence(s)."), rc)); + matches_label->add_color_override("font_color", rc > 0 ? get_color("font_color", "Label") : get_color("error_color", "Editor")); + matches_label->set_text(vformat(TTR("%d replaced."), rc)); text_edit->call_deferred("connect", "text_changed", this, "_editor_text_changed"); results_count = -1; |