1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 08:51:46 +03:00

Fix case where a context ends up locked in no-hooks mode

This commit is contained in:
Maxime Coste 2014-11-12 20:31:12 +00:00
parent fab9c92006
commit 3f733569ed

View File

@ -103,8 +103,11 @@ public:
m_count /= 10;
else if (key == '\\')
{
m_hooks_disabled = true;
context().disable_user_hooks();
if (not m_hooks_disabled)
{
m_hooks_disabled = true;
context().disable_user_hooks();
}
}
else
{