detect whether running tmux has a buggy swap-pane command
see ticket #108, fixed in upstream commit 78e783e
This commit is contained in:
parent
cfea776923
commit
727b40ac10
|
@ -240,7 +240,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na
|
|||
# }
|
||||
#
|
||||
# maximize_pane() {
|
||||
# tmux -V |grep -q '1.9a\?$' && tmux display "tmux 1.9 and 1.9a have a bug that prevent this feature from working" && return
|
||||
# tmux -q -L swap-pane-test -f /dev/null new-session -d \; new-window \; new-window \; swap-pane -t :1 \; kill-session || { tmux display 'your tmux version has a buggy swap-pane command - see ticket #108, fixed in upstream commit 78e783e'; exit; }
|
||||
# __current_pane=$(tmux display -p '#{pane_id}')
|
||||
#
|
||||
# __dead_panes=$(tmux list-panes -s -F '#{pane_dead} #{pane_id} #{pane_title}' | grep -o '^1 %.\+%.\+$' || true)
|
||||
|
|
|
@ -8,8 +8,10 @@ Self-contained, opinionated `.tmux.conf` configuration file.
|
|||
The `master` branch targets tmux 1.9+. You may want to use the `1.7` or `1.8`
|
||||
branch.
|
||||
|
||||
**Please note that tmux 1.9 and 1.9a SEGFAULT when using the maximize pane
|
||||
feature. As a consequence, the feature is disabled for those versions.**
|
||||
**Please note that upstream tmux 1.9 and 1.9a SEGFAULT when using the maximize
|
||||
pane feature. Some Linux distributions like Debian provide a patched tmux 1.9a.
|
||||
Depending on whether or not the running tmux version has a buggy swap-pane
|
||||
command, the maximize pane feature may be disabled.**
|
||||
|
||||
Features
|
||||
--------
|
||||
|
|
Loading…
Reference in a new issue