diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-07-24 19:18:39 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-07-24 19:18:39 +0100 |
| commit | 731277a4253ee847efd2b10db6572b58ab7afe96 (patch) | |
| tree | a04f6668973a503eb7c4ceee2006e23efa05841b /src/hook_manager.cc | |
| parent | 826bf22eeff5a867f9126729d12343bba08f0d1f (diff) | |
Disable hooks on a per context basis, and propagate that to Insert mode
using \ before entering insert mode will disable hooks during the whole
insert session rather than only the entering phase. That gives a nice
way of pasting text into kakoune.
Diffstat (limited to 'src/hook_manager.cc')
| -rw-r--r-- | src/hook_manager.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/hook_manager.cc b/src/hook_manager.cc index ae0d10ba..7efafbbd 100644 --- a/src/hook_manager.cc +++ b/src/hook_manager.cc @@ -59,11 +59,4 @@ void HookManager::run_hook(const String& hook_name, } } -bool GlobalHooks::are_user_hooks_disabled() const -{ - kak_assert(m_disabled >= 0); - return m_disabled > 0; -} - - } |
