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);
|
killpg(getpgrp(), SIGINT);
|
||||||
else
|
else
|
||||||
m_pending_keys.push_back(key);
|
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);
|
||||||
if (*key == ctrl('c'))
|
else if (*key == Key::FocusIn)
|
||||||
killpg(getpgrp(), SIGINT);
|
context().hooks().run_hook("FocusIn", context().name(), context());
|
||||||
else if (*key == Key::FocusIn)
|
else if (*key == Key::FocusOut)
|
||||||
context().hooks().run_hook("FocusIn", context().name(), context());
|
context().hooks().run_hook("FocusOut", context().name(), context());
|
||||||
else if (*key == Key::FocusOut)
|
else
|
||||||
context().hooks().run_hook("FocusOut", context().name(), context());
|
m_input_handler.handle_key(*key);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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)
|
void Client::print_status(DisplayLine status_line)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user