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/scope.cc | |
| 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/scope.cc')
| -rw-r--r-- | src/scope.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scope.cc b/src/scope.cc index 2930be97..fab7ed0d 100644 --- a/src/scope.cc +++ b/src/scope.cc @@ -18,7 +18,7 @@ GlobalScope::~GlobalScope() void GlobalScope::on_option_changed(const Option& option) { Context empty_context{Context::EmptyContextFlag{}}; - hooks().run_hook("GlobalSetOption", + hooks().run_hook(Hook::GlobalSetOption, format("{}={}", option.name(), option.get_as_string(Quoting::Kakoune)), empty_context); } |
