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.hh | |
| 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.hh')
| -rw-r--r-- | src/hook_manager.hh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/hook_manager.hh b/src/hook_manager.hh index 4008e871..e5c94850 100644 --- a/src/hook_manager.hh +++ b/src/hook_manager.hh @@ -36,13 +36,6 @@ private: class GlobalHooks : public HookManager, public Singleton<GlobalHooks> { -public: - bool are_user_hooks_disabled() const; - - void disable_user_hooks() { ++m_disabled; } - void enable_user_hooks() { --m_disabled; } -private: - int m_disabled = 0; }; } |
