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
{
m_in_on_key.set();
auto unset_in_on_key = on_scope_end([this]{ m_in_on_key.unset(); });
ScopedSetBool set_in_on_key{m_in_on_key};
bool do_restore_hooks = false;
auto restore_hooks = on_scope_end([&, this]{