diff options
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
