Style tweak in client.cc
This commit is contained in:
parent
8020d96474
commit
3019118b10
|
@ -60,33 +60,32 @@ void Client::handle_available_input(EventMode mode)
|
|||
killpg(getpgrp(), SIGINT);
|
||||
else
|
||||
m_pending_keys.push_back(key);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
try
|
||||
{
|
||||
try
|
||||
while (Optional<Key> key = get_next_key(mode))
|
||||
{
|
||||
while (Optional<Key> key = get_next_key(mode))
|
||||
{
|
||||
if (*key == ctrl('c'))
|
||||
killpg(getpgrp(), SIGINT);
|
||||
else if (*key == Key::FocusIn)
|
||||
context().hooks().run_hook("FocusIn", context().name(), context());
|
||||
else if (*key == Key::FocusOut)
|
||||
context().hooks().run_hook("FocusOut", context().name(), context());
|
||||
else
|
||||
m_input_handler.handle_key(*key);
|
||||
}
|
||||
}
|
||||
catch (Kakoune::runtime_error& error)
|
||||
{
|
||||
context().print_status({ error.what().str(), get_face("Error") });
|
||||
context().hooks().run_hook("RuntimeError", error.what(), context());
|
||||
}
|
||||
catch (Kakoune::client_removed&)
|
||||
{
|
||||
ClientManager::instance().remove_client(*this);
|
||||
if (*key == ctrl('c'))
|
||||
killpg(getpgrp(), SIGINT);
|
||||
else if (*key == Key::FocusIn)
|
||||
context().hooks().run_hook("FocusIn", context().name(), context());
|
||||
else if (*key == Key::FocusOut)
|
||||
context().hooks().run_hook("FocusOut", context().name(), context());
|
||||
else
|
||||
m_input_handler.handle_key(*key);
|
||||
}
|
||||
}
|
||||
catch (Kakoune::runtime_error& error)
|
||||
{
|
||||
context().print_status({ error.what().str(), get_face("Error") });
|
||||
context().hooks().run_hook("RuntimeError", error.what(), context());
|
||||
}
|
||||
catch (Kakoune::client_removed&)
|
||||
{
|
||||
ClientManager::instance().remove_client(*this);
|
||||
}
|
||||
}
|
||||
|
||||
void Client::print_status(DisplayLine status_line)
|
||||
|
|
Loading…
Reference in New Issue
Block a user