diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-01-28 13:48:34 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-01-28 13:48:34 +0100 |
| commit | 94bbf47cd45e48b0f0f46971a82c6bc85965ac81 (patch) | |
| tree | ab04dab1bfa46c5a54c64774319f6cf9f17b8ad0 /src/input_handler.hh | |
| parent | 3d430e14c4179a8c6865f1ec131c164ca44c1a51 (diff) | |
InputHandler have it's own context
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 9baa56ce..6a9536c0 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -5,12 +5,12 @@ #include "completion.hh" #include "utils.hh" #include "string.hh" +#include "context.hh" namespace Kakoune { class Editor; -class Context; enum class MenuEvent { @@ -35,7 +35,7 @@ enum class InsertMode : unsigned; class InputHandler : public SafeCountable { public: - InputHandler(); + InputHandler(UserInterface& ui); ~InputHandler(); // switch to insert mode @@ -65,7 +65,9 @@ public: // user interface void handle_available_inputs(Context& context); + Context& context() { return m_context; } private: + Context m_context; friend class InputMode; std::unique_ptr<InputMode> m_mode; std::vector<std::unique_ptr<InputMode>> m_mode_trash; |
