Make the replaced results appear in the matches counter

This commit is contained in:
Michael Alexsander 2019-11-15 09:47:27 -03:00
parent 98caeb635c
commit 1c5cfb9bfd
1 changed files with 2 additions and 1 deletions

View File

@ -277,7 +277,8 @@ void FindReplaceBar::_replace_all() {
} }
text_edit->set_v_scroll(vsval); 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"); text_edit->call_deferred("connect", "text_changed", this, "_editor_text_changed");
results_count = -1; results_count = -1;