diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-09-16 19:38:28 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-09-16 19:38:28 +0100 |
| commit | 7fef7ec0633f91dd84c413472368f6be7b9a5dc9 (patch) | |
| tree | 925c947e1e5d71e572d2c539ff54870f612480a8 /src/client.hh | |
| parent | 168b4b775b6271c4a3ae2b0047e8d81fbda4e618 (diff) | |
Add a InputMode::on_replaced virtual method.
Destructors are not a good place to run mode exit hooks, as they
wont be called until the next mode trash clearing, so we now call
this virtual method on the previous mode just before it gets replaced.
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh index eec3bbd9..8f7d718a 100644 --- a/src/client.hh +++ b/src/client.hh @@ -91,6 +91,8 @@ private: std::unique_ptr<InputMode> m_mode; std::vector<std::unique_ptr<InputMode>> m_mode_trash; + void change_input_mode(InputMode* new_mode); + String m_name; DisplayLine m_status_line; |
