From 1c5cfb9bfda192a37c00e4d6b2b4ef8c5d8c35c9 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Fri, 15 Nov 2019 09:47:27 -0300 Subject: [PATCH] Make the replaced results appear in the matches counter --- editor/code_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 16780a795f1..0a8a31207a1 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;