summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-23 13:40:20 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-23 13:40:20 +0100
commitd2f811a8d5ef527eb98da7acdee93fa8f00131f2 (patch)
tree151b9e0b9c2dbc5c952f329b919d2aa772ce0a25 /src/window.cc
parent11e885e5a5e31f75cfb18dd02907b86e3c40b8da (diff)
Refactor filter and highlighter registry into a common template
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc6
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);