From 5c6238ef113da8c2844ff9bcfa27c87e3473c150 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 1 May 2022 20:59:29 +1000 Subject: [PATCH] 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. --- src/input_handler.cc | 2 -- 1 file changed, 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);