summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-04 13:56:08 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-04 13:56:08 +0100
commitf39b450e9446f3c8dc94fd6c3338a970d6e8389f (patch)
treec5a57f84918e3e4461804c4598bca553e8078ee3 /src/input_handler.cc
parentb34d469b72a1a8c48a7217535b68e8e1f350162e (diff)
on_enabled might change mode, so assert Normal mode before
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index ee3126be..0f6904dc 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<InputModes::Normal*>(&current_mode()) != nullptr);
+ current_mode().on_enabled();
}
void InputHandler::insert(InsertMode mode)