Use a ScopedSetBool instead of manual set/unset for InputModes::Normal::m_in_on_key

This commit is contained in:
Maxime Coste 2017-05-26 08:28:34 +01:00
parent 5a93159012
commit 11f924c528

View File

@ -200,8 +200,7 @@ public:
void on_key(Key key) override void on_key(Key key) override
{ {
m_in_on_key.set(); ScopedSetBool set_in_on_key{m_in_on_key};
auto unset_in_on_key = on_scope_end([this]{ m_in_on_key.unset(); });
bool do_restore_hooks = false; bool do_restore_hooks = false;
auto restore_hooks = on_scope_end([&, this]{ auto restore_hooks = on_scope_end([&, this]{