diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-09-12 21:24:38 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-09-12 21:26:21 +1000 |
| commit | 0c3d9ccd20e9833abbec6f003f3fab27da27b869 (patch) | |
| tree | 07485285268f31a3771879ce95b12b6faa770a9d /src/hook_manager.hh | |
| parent | b8d312cfe039721cb996cf83100630e64cd15c43 (diff) | |
Change remove-hooks to take a regular expression
All hooks whose group match this regex will be removed.
Fixes #2380.
Diffstat (limited to 'src/hook_manager.hh')
| -rw-r--r-- | src/hook_manager.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hook_manager.hh b/src/hook_manager.hh index 9e75c086..6da5fe30 100644 --- a/src/hook_manager.hh +++ b/src/hook_manager.hh @@ -27,7 +27,7 @@ public: void add_hook(StringView hook_name, String group, HookFlags flags, Regex filter, String commands); - void remove_hooks(StringView group); + void remove_hooks(const Regex& regex); CandidateList complete_hook_group(StringView prefix, ByteCount pos_in_token); void run_hook(StringView hook_name, StringView param, Context& context); |
