mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-11 12:44:59 +03:00
Clear up info/menus and eventual prompts when reseting to normal mode
Fixes #697
This commit is contained in:
parent
04d24b22bd
commit
34c8e6a9cf
@ -287,7 +287,7 @@ void Client::close_buffer_reload_dialog()
|
||||
{
|
||||
kak_assert(m_buffer_reload_dialog_opened);
|
||||
m_buffer_reload_dialog_opened = false;
|
||||
m_ui->info_hide();
|
||||
info_hide();
|
||||
m_input_handler.reset_normal_mode();
|
||||
}
|
||||
|
||||
|
@ -150,9 +150,14 @@ void Context::change_buffer(Buffer& buffer)
|
||||
|
||||
m_window.reset();
|
||||
if (has_client())
|
||||
{
|
||||
client().change_buffer(buffer);
|
||||
client().info_hide();
|
||||
client().menu_hide();
|
||||
}
|
||||
else
|
||||
m_selections = SelectionList{buffer, Selection{}};
|
||||
|
||||
if (has_input_handler())
|
||||
input_handler().reset_normal_mode();
|
||||
}
|
||||
|
@ -883,6 +883,7 @@ private:
|
||||
}
|
||||
|
||||
void on_enabled() override { display(); }
|
||||
void on_disabled() override { context().print_status({}); }
|
||||
|
||||
PromptCallback m_callback;
|
||||
Completer m_completer;
|
||||
|
Loading…
Reference in New Issue
Block a user