Remove invalid assert in ScopedForceNormal destructor

commit 90db664635 introduced logic
to handle the case where the mode had been removed, but did not
get rid of the assert.
This commit is contained in:
Maxime Coste 2022-05-01 20:59:29 +10:00
parent a1940a3745
commit 5c6238ef11

View File

@ -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);