diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-31 13:53:08 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-10-31 13:53:08 +0800 |
| commit | 94a0c9bb4564632c06e25eb3fbc4e7123ff842ff (patch) | |
| tree | 9a8ff90312eed46baa0a510f9e625b176ed8936a /src/window.cc | |
| parent | 6272847acefc0651124f7a1d7dcbb224ef60affb (diff) | |
Highlighters does not need to inherit from HighlighterGroup
Just compose, to avoid coupling Highlighters with the Highlighter
interface. And yeah, that naming is a bit confusing.
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc index e1bd3ee5..76cb10cb 100644 --- a/src/window.cc +++ b/src/window.cc @@ -28,7 +28,7 @@ Window::Window(Buffer& buffer) options().register_watcher(*this); - setup_builtin_highlighters(m_builtin_highlighters); + setup_builtin_highlighters(m_builtin_highlighters.group()); for (auto& option : options().flatten_options()) on_option_changed(*option); |
