From fa5ae65f3a16abffc9a8cc5b71de41015dc0c2bf Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 3 May 2017 19:41:37 +0100 Subject: Move passes logic to the base Highlighter class Validate that childs of HighlighterGroup are matching its passes. --- src/window.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/window.cc') 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()); -- cgit v1.2.3