summaryrefslogtreecommitdiff
path: root/src/context.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-12-16 23:24:08 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-12-16 23:24:08 +0000
commitd1ac813f61e4f9e78077c43f8bf5bbda9dcef55f (patch)
tree0b34f833a824d58e6b22ccb271328631506ad564 /src/context.cc
parentae75594d252651c4557b621573c2481bee40a137 (diff)
Pass a Context rather than a Window to highlighters
Diffstat (limited to 'src/context.cc')
-rw-r--r--src/context.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/context.cc b/src/context.cc
index 163beb16..a638a927 100644
--- a/src/context.cc
+++ b/src/context.cc
@@ -13,6 +13,10 @@ Context::Context(InputHandler& input_handler, Editor& editor, String name)
: m_input_handler(&input_handler), m_editor(&editor),
m_name(std::move(name)) {}
+Context::Context(Editor& editor, String name)
+ : m_editor(&editor),
+ m_name(std::move(name)) {}
+
Context::~Context() = default;
Buffer& Context::buffer() const