Adjust the logic when deleting last buffer to better preserve the
authornicm <nicm@openbsd.org>
Sun, 4 Aug 2024 08:53:43 +0000 (08:53 +0000)
committernicm <nicm@openbsd.org>
Sun, 4 Aug 2024 08:53:43 +0000 (08:53 +0000)
commitd32785554e5217899691b82c33b50ad710f1ce7e
tree7d4d121062d1af7695bb218b4203416e59aae221
parent00b011bc2193c5221f53457b48af622426769cc5
Adjust the logic when deleting last buffer to better preserve the
selection: if selecting the element below the deleted one fails (because
as the last one), select the one above it instead. From Daniel Mueller,
GitHub issue 4043.
usr.bin/tmux/mode-tree.c
usr.bin/tmux/tmux.h
usr.bin/tmux/window-buffer.c