diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-10-23 08:15:53 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-10-23 08:15:53 +1100 |
| commit | dfc11d1c43b898394df8fda52a8079b34058de27 (patch) | |
| tree | 8d1923461be03b1d0eab5706740d22986a86997d /src/buffer.hh | |
| parent | e399bf7562475c92f4f9e983d2261c12903072d4 (diff) | |
Refactor Hook management to have a well defined list of hooks
Hooks are now an enum class instead of passing strings around.
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 202469bb..0cdb8209 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -199,7 +199,7 @@ public: ValueMap& values() const { return m_values; } - void run_hook_in_own_context(StringView hook_name, StringView param, + void run_hook_in_own_context(Hook hook, StringView param, String client_name = {}); void reload(StringView data, timespec fs_timestamp = InvalidTime); |
