1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

Process ctrl-c when not in urgent event mode as well

This commit is contained in:
Maxime Coste 2014-11-26 19:24:58 +00:00
parent da9f688f37
commit 7c87abe856

View File

@ -53,8 +53,13 @@ void Client::handle_available_input(EventMode mode)
while (m_ui->is_key_available())
{
m_input_handler.handle_key(m_ui->get_key());
m_input_handler.clear_mode_trash();
if (key == ctrl('c'))
killpg(getpgrp(), SIGINT);
else
{
m_input_handler.handle_key(m_ui->get_key());
m_input_handler.clear_mode_trash();
}
}
context().window().forget_timestamp();
}