From d2f811a8d5ef527eb98da7acdee93fa8f00131f2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 23 Nov 2012 13:40:20 +0100 Subject: Refactor filter and highlighter registry into a common template --- src/window.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/window.cc') diff --git a/src/window.cc b/src/window.cc index ae3e0ca5..25dc5497 100644 --- a/src/window.cc +++ b/src/window.cc @@ -1,7 +1,7 @@ #include "window.hh" #include "assert.hh" -#include "highlighter_registry.hh" +#include "highlighter.hh" #include "hook_manager.hh" #include "context.hh" @@ -21,8 +21,8 @@ Window::Window(Buffer& buffer) m_hooks.run_hook("WinCreate", buffer.name(), Context(*this)); m_options.register_watcher(*this); - registry.add_highlighter_to_group(*this, m_highlighters, "expand_tabs", HighlighterParameters()); - registry.add_highlighter_to_group(*this, m_highlighters, "highlight_selections", HighlighterParameters()); + m_highlighters.append(registry["expand_tabs"](*this, {})); + m_highlighters.append(registry["highlight_selections"](*this, {})); for (auto& option : m_options.flatten_options()) on_option_changed(option.first, option.second); -- cgit v1.2.3