Merge lp://staging/~chrisccoulson/byobu/fix-tmux-swap-window-usage into lp://staging/byobu

Proposed by Chris Coulson
Status: Merged
Merged at revision: 2633
Proposed branch: lp://staging/~chrisccoulson/byobu/fix-tmux-swap-window-usage
Merge into: lp://staging/byobu
Diff against target: 14 lines (+2/-2)
1 file modified
usr/share/byobu/keybindings/f-keys.tmux (+2/-2)
To merge this branch: bzr merge lp://staging/~chrisccoulson/byobu/fix-tmux-swap-window-usage
Reviewer Review Type Date Requested Status
Dustin Kirkland  Pending
Review via email: mp+378398@code.staging.launchpad.net

Commit message

Update usage of tmux swap-window so that focus stays with the original window.

See https://github.com/tmux/tmux/commit/39c55d5b6fcafd9476528ebc1064192c90f559a4 for more context. The "swap-window" command now needs the "-d" argument so that focus follows the original window.

Description of the change

Since upgrading from tmux 2.9a (in eoan) to tmux 3.0a (in focal), the CTRL+SHIFT+F3/F4 shortcuts no longer behave as they did previously - the windows are swapped, but focus doesn't move to the originally focused window. Eg, if I have 2 windows (A and B) with A being the currently focused window, and then I use CTRL+SHIFT+F4 to swap them, I end up with windows B and A (as expected), but window B is focused when I expected the focus to follow window A (as it did with tmux 2.9a).

This appears to be a breaking change in tmux - https://github.com/tmux/tmux/commit/39c55d5b6fcafd9476528ebc1064192c90f559a4

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches