searchbar: Make sure we clear highlighting when the last character is removed

We need to call do_find() even if we just backspaced the last character out of
the search entry. This ensures all highlighting gets removed from the document.
This commit is contained in:
JosephMcc 2016-11-28 15:07:57 -08:00
parent aa31c09fc7
commit 0f1de23d7f
1 changed files with 4 additions and 3 deletions

View File

@ -434,6 +434,7 @@ search_text_entry_changed (GtkEditable *editable,
else else
{ {
search_buttons_set_sensitive (searchbar, FALSE); search_buttons_set_sensitive (searchbar, FALSE);
do_find (searchbar, FALSE);
} }
} }