on_enabled might change mode, so assert Normal mode before
This commit is contained in:
parent
b34d469b72
commit
f39b450e94
|
@ -1199,8 +1199,8 @@ void InputHandler::reset_normal_mode()
|
||||||
current_mode().on_disabled();
|
current_mode().on_disabled();
|
||||||
m_mode_stack.resize(1);
|
m_mode_stack.resize(1);
|
||||||
}
|
}
|
||||||
current_mode().on_enabled();
|
|
||||||
kak_assert(dynamic_cast<InputModes::Normal*>(¤t_mode()) != nullptr);
|
kak_assert(dynamic_cast<InputModes::Normal*>(¤t_mode()) != nullptr);
|
||||||
|
current_mode().on_enabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputHandler::insert(InsertMode mode)
|
void InputHandler::insert(InsertMode mode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user