diff options
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/context.hh b/src/context.hh index 801cb289..05acef73 100644 --- a/src/context.hh +++ b/src/context.hh @@ -97,13 +97,16 @@ struct Context ui().print_status(status); } - int numeric_param() const { return m_numeric_param; } - void numeric_param(int param) { m_numeric_param = param; } + using Insertion = std::pair<InsertMode, std::vector<Key>>; + Insertion& last_insert() { return m_last_insert; } -public: + int& numeric_param() { return m_numeric_param; } +private: safe_ptr<Editor> m_editor; safe_ptr<Client> m_client; safe_ptr<UserInterface> m_ui; + + Insertion m_last_insert = {InsertMode::Insert, {}}; int m_numeric_param = 0; }; |
