From 08910538d8ab1f8c90d4b1bfbc706d2a5d1c080a Mon Sep 17 00:00:00 2001 From: Ole Christian Eidheim Date: Fri, 18 Dec 2015 11:38:13 +0100 Subject: [PATCH] Dialogs now gets hidden if a new cursor position is chosen using the mouse. Also made the run command entry a bit larger --- src/source.cc | 8 ++++++++ src/window.cc | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/source.cc b/src/source.cc index ff3ecc6..1afe104 100644 --- a/src/source.cc +++ b/src/source.cc @@ -428,6 +428,14 @@ void Source::View::set_tooltip_and_dialog_events() { }, 500); type_tooltips.hide(); diagnostic_tooltips.hide(); + + if(spellcheck_suggestions_dialog && spellcheck_suggestions_dialog->shown) + spellcheck_suggestions_dialog->hide(); + if(autocomplete_dialog && autocomplete_dialog->shown) + autocomplete_dialog->hide(); + if(selection_dialog && selection_dialog->shown) + selection_dialog->hide(); + set_info(info); } }); diff --git a/src/window.cc b/src/window.cc index ef955b9..aef42c8 100644 --- a/src/window.cc +++ b/src/window.cc @@ -592,7 +592,7 @@ void Window::set_menu_actions() { }); } entry_box.hide(); - }); + }, 30); auto entry_it=entry_box.entries.begin(); entry_it->set_placeholder_text("Command"); entry_box.buttons.emplace_back("Run command", [this, entry_it](){