From f39b450e9446f3c8dc94fd6c3338a970d6e8389f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 4 Jun 2015 13:56:08 +0100 Subject: [PATCH] on_enabled might change mode, so assert Normal mode before --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)