diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-07 18:24:08 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-07 18:25:49 +0000 |
| commit | 6840f7ce9cae76295ecedd92114829b413fdd6bb (patch) | |
| tree | 2331ca711cf9c1926bf336a518ef6dd840ac5725 /src/client.hh | |
| parent | 6bb775241cf44fa2aec40c1fa0294e8b7379cf70 (diff) | |
Store the last used buffer in clients
Fixes #474
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh index 58df582e..f16bd09b 100644 --- a/src/client.hh +++ b/src/client.hh @@ -52,6 +52,9 @@ public: StringView get_env_var(StringView name) const; + Buffer* last_buffer() const { return m_last_buffer.get(); } + void set_last_buffer(Buffer* last_buffer) { m_last_buffer = last_buffer; } + private: void on_option_changed(const Option& option) override; @@ -77,6 +80,8 @@ private: Vector<Key, MemoryDomain::Client> m_pending_keys; bool m_buffer_reload_dialog_opened = false; + + SafePtr<Buffer> m_last_buffer; }; } |
