diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2021-09-11 10:43:25 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2021-10-06 08:44:47 +0200 |
| commit | a5dd8a7935ccdc3859749d7757c6a4005b7b6a98 (patch) | |
| tree | a934311fc4a91e394f53077b8ba13d59d6770887 /src/string_utils.cc | |
| parent | 09f4ef0917e9174cc0d10a86b0272f5e5d655285 (diff) | |
src: Allow `ga` to skip removed buffers
This commit prevents `ga` from returning a “no last buffer” error
when the previously displayed buffer was removed.
Since the jumps list keeps track of the order in which buffers were
displayed already, handling arbitrary `delete-buffer`s as well,
cycle through it to implement `ga` instead of storing a pointer.
Note that this commit doesn't take into account buffer flags that
might exclude some buffers from being cycled over by commands.
Fixes #1840
Diffstat (limited to 'src/string_utils.cc')
0 files changed, 0 insertions, 0 deletions
