diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-20 20:10:08 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-20 20:14:57 +0000 |
| commit | c0973075fafc7003be1028922bf99a2c48bcdcd6 (patch) | |
| tree | 303d3d6b03942857775f7c0d2e15d621a6f6df37 /src/input_handler.cc | |
| parent | cb324a4b8842d6d45a7dba316cd4f909addb99c2 (diff) | |
Get rid of Editor for good
ClientManager now stores only the free windows, clients take
ownership of its own.
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 03c9f497..c68c0c76 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -995,7 +995,7 @@ private: template<typename Type> void move(Type offset) { - auto& selections = context().editor().selections(); + auto& selections = context().selections(); for (auto& sel : selections) { auto last = context().has_window() ? context().window().offset_coord(sel.last(), offset) @@ -1125,9 +1125,9 @@ void InputMode::reset_normal_mode() m_input_handler.reset_normal_mode(); } -InputHandler::InputHandler(Editor& editor, String name) +InputHandler::InputHandler(Buffer& buffer, SelectionList selections, String name) : m_mode(new InputModes::Normal(*this)), - m_context(*this, editor, std::move(name)) + m_context(*this, buffer, std::move(selections), std::move(name)) { } |
