diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-11-12 19:59:25 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-11-12 19:59:25 +0100 |
| commit | 801f4e740c2de6676d0f9fa41c58e41adfa99c8f (patch) | |
| tree | 9efa7cb1eeec5ebb4ce118be380c60feeacf90d4 /src/client_manager.cc | |
| parent | 41b5336296d9259d34c7e9a1b30b963fa1d7a5f2 (diff) | |
Add jump list support to context
jump forward is bound to ctrl-i
jump backward is bound to ctrl-o
switch buffers or jumping somewhere in the buffer push the current
position to the jump list.
when a buffer is deleted, all entries referencing it in jump lists
are erased.
Diffstat (limited to 'src/client_manager.cc')
| -rw-r--r-- | src/client_manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client_manager.cc b/src/client_manager.cc index 07322fed..c2a7dcce 100644 --- a/src/client_manager.cc +++ b/src/client_manager.cc @@ -67,6 +67,8 @@ void ClientManager::ensure_no_client_uses_buffer(Buffer& buffer) { for (auto& client : m_clients) { + client.context->forget_jumps_to_buffer(buffer); + if (&client.context->buffer() != &buffer) continue; |
