diff --git a/src/source.cc b/src/source.cc index d11074a..ff3ecc6 100644 --- a/src/source.cc +++ b/src/source.cc @@ -451,6 +451,10 @@ void Source::View::set_tooltip_and_dialog_events() { type_tooltips.hide(); diagnostic_tooltips.hide(); delayed_spellcheck_suggestions_connection.disconnect(); + if(spellcheck_suggestions_dialog && spellcheck_suggestions_dialog->shown) + spellcheck_suggestions_dialog->hide(); + if(autocomplete_dialog && autocomplete_dialog->shown) + autocomplete_dialog->hide(); return false; });