summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-05-01 20:59:29 +1000
committerMaxime Coste <mawww@kakoune.org>2022-05-01 20:59:29 +1000
commit5c6238ef113da8c2844ff9bcfa27c87e3473c150 (patch)
tree2a61c4ee5f74dc7a4deba38777f46583115bcc7d /src/input_handler.cc
parenta1940a3745d686f1563311a7b4edda2ed018f854 (diff)
Remove invalid assert in ScopedForceNormal destructor
commit 90db664635013f6e857ec696403f2164032410a8 introduced logic to handle the case where the mode had been removed, but did not get rid of the assert.
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 26d255c0..9b1857a8 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -1694,8 +1694,6 @@ InputHandler::ScopedForceNormal::~ScopedForceNormal()
if (not m_mode)
return;
- kak_assert(m_handler.m_mode_stack.size() > 1);
-
if (m_mode == m_handler.m_mode_stack.back().get())
m_handler.pop_mode(m_mode);
else if (auto it = find(m_handler.m_mode_stack, m_mode);