summaryrefslogtreecommitdiff
path: root/src/context.cc
diff options
context:
space:
mode:
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