diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-05-03 19:41:37 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-07 16:26:14 +0100 |
| commit | fa5ae65f3a16abffc9a8cc5b71de41015dc0c2bf (patch) | |
| tree | b9d0187d28f4f90b2b422edffa0dbb0067c0f76c /src/window.cc | |
| parent | 55631c8d8ef29f8c48d43410d487b6bfeb37c73b (diff) | |
Move passes logic to the base Highlighter class
Validate that childs of HighlighterGroup are matching its passes.
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc index ffe15687..21f3ed74 100644 --- a/src/window.cc +++ b/src/window.cc @@ -23,7 +23,9 @@ void expand_unprintable(const Context& context, HighlightPass pass, DisplayBuffe Window::Window(Buffer& buffer) : Scope(buffer), - m_buffer(&buffer) + m_buffer(&buffer), + m_highlighters{HighlightPass::All}, + m_builtin_highlighters{HighlightPass::All} { run_hook_in_own_context("WinCreate", buffer.name()); |
