summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-31 10:04:27 +0100
committerGitHub <noreply@github.com>2020-01-31 10:04:27 +0100
commit67c3ce35bd50ae59833ae0b8b7ddc277fd46c5be (patch)
tree48bc449d7bd2473ecac08efba169044ad1392717
parent9b088958ec118b0029dc37b846b6610ef4711ef3 (diff)
parent1c5cfb9bfda192a37c00e4d6b2b4ef8c5d8c35c9 (diff)
Merge pull request #33639 from YeldhamDev/replaced_label_location
Make the replaced results appear in the matches counter
-rw-r--r--editor/code_editor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 4f684c7bdc..e05ace53da 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;