diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-04-07 15:36:39 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-04-07 16:27:50 +1000 |
| commit | 57baad4afde8d1bab4040c5a5cbe8a5b367bceba (patch) | |
| tree | 5e4f5fba17f8a6038301fcb129f36db102b0bd70 /src/hook_manager.cc | |
| parent | 6adb28ec1243adf13126ee47444d57dd2b842945 (diff) | |
Make FaceRegistry scoped
set-face now takes a scope argument, and faces can be overridden on
a buffer or window basis.
colorscheme apply on global scope, which should be good enough for
now.
Fixes #1411
Diffstat (limited to 'src/hook_manager.cc')
| -rw-r--r-- | src/hook_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hook_manager.cc b/src/hook_manager.cc index d5238de6..b869c261 100644 --- a/src/hook_manager.cc +++ b/src/hook_manager.cc @@ -133,7 +133,7 @@ void HookManager::run_hook(StringView hook_name, StringView param, Context& cont if (hook_error) context.print_status({ format("Error running hooks for '{}' '{}', see *debug* buffer", - hook_name, param), get_face("Error") }); + hook_name, param), context.faces()["Error"] }); if (profile) { |
