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/context.hh | |
| 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/context.hh')
| -rw-r--r-- | src/context.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/context.hh b/src/context.hh index cad77d4c..e2903b50 100644 --- a/src/context.hh +++ b/src/context.hh @@ -92,9 +92,10 @@ public: Scope& scope() const; OptionManager& options() const { return scope().options(); } - HookManager& hooks() const { return scope().hooks(); } + HookManager& hooks() const { return scope().hooks(); } KeymapManager& keymaps() const { return scope().keymaps(); } AliasRegistry& aliases() const { return scope().aliases(); } + FaceRegistry& faces() const { return scope().faces(); } void print_status(DisplayLine status) const; |
