Patrick Börjesson
2014-08-12 16:52:09 UTC
Hi everybody!
I just started using tmux and encountered a peculiarity which I couldn't live
with.
When switching between panes with select-pane, the switching "wraps around" when
it encounters the window edge. E.g. if the right-most pane is selected and I try
to switch to the right of the selected pane with "select-pane -R", it wraps
around to the left-most pane.
This behaviour is unacceptable for me, thus this patch I'm hereby sending to you
all. I thought a window-option with the current behaviour as default would be
the best approach to this.
The patch should apply to current 'master' branch.
Comments and critique very welcome. Pleace CC me though, as I'm not subscribed
to the list.
Greetings,
Patrick Börjesson
Patrick Börjesson (1):
select-panes: add wrap-panes window-option
cmd-select-pane.c | 22 +++++++++++++---------
options-table.c | 5 +++++
window.c | 8 ++++----
3 files changed, 22 insertions(+), 13 deletions(-)
I just started using tmux and encountered a peculiarity which I couldn't live
with.
When switching between panes with select-pane, the switching "wraps around" when
it encounters the window edge. E.g. if the right-most pane is selected and I try
to switch to the right of the selected pane with "select-pane -R", it wraps
around to the left-most pane.
This behaviour is unacceptable for me, thus this patch I'm hereby sending to you
all. I thought a window-option with the current behaviour as default would be
the best approach to this.
The patch should apply to current 'master' branch.
Comments and critique very welcome. Pleace CC me though, as I'm not subscribed
to the list.
Greetings,
Patrick Börjesson
Patrick Börjesson (1):
select-panes: add wrap-panes window-option
cmd-select-pane.c | 22 +++++++++++++---------
options-table.c | 5 +++++
window.c | 8 ++++----
3 files changed, 22 insertions(+), 13 deletions(-)
--
Patrick Börjesson
Patrick Börjesson