diff --git a/src/input_handler.cc b/src/input_handler.cc index ee3126be9..0f6904dca 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1199,8 +1199,8 @@ void InputHandler::reset_normal_mode() current_mode().on_disabled(); m_mode_stack.resize(1); } - current_mode().on_enabled(); kak_assert(dynamic_cast(¤t_mode()) != nullptr); + current_mode().on_enabled(); } void InputHandler::insert(InsertMode mode)