accomodate for slow shell init in _maximize_pane(). Fixes #170
This commit is contained in:
parent
7ebc59956a
commit
08334a6451
1 changed files with 5 additions and 5 deletions
10
.tmux.conf
10
.tmux.conf
|
@ -205,12 +205,12 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# window=$(tmux new-window -t "$current_session:" -P "exec maximized... 2> /dev/null & tmux setw -t \"$current_session:\" remain-on-exit on; printf \"Pane has been maximized, press <prefix>+ to restore. %s\" '$current_pane'")
|
# window=$(tmux new-window -t "$current_session:" -P "exec maximized... 2> /dev/null & tmux setw -t \"$current_session:\" remain-on-exit on; printf \"Pane has been maximized, press <prefix>+ to restore. %s\" '$current_pane'")
|
||||||
# window=${window%.*}
|
# window=${window%.*}
|
||||||
#
|
#
|
||||||
# guard=10
|
# retry=10
|
||||||
# while [ x"$(tmux list-panes -t "$window" -F '#{session_name}:#{window_index} #{pane_dead}' 2>/dev/null)" != x"$window 1" ] && [ "$guard" -ne 0 ]; do
|
# while [ x"$(tmux list-panes -t "$window" -F '#{session_name}:#{window_index} #{pane_dead}' 2>/dev/null)" != x"$window 1" ] && [ "$retry" -ne 0 ]; do
|
||||||
# sleep 0.01
|
# sleep 0.05
|
||||||
# guard=$((guard - 1))
|
# retry=$((retry - 1))
|
||||||
# done
|
# done
|
||||||
# if [ "$guard" -eq 0 ]; then
|
# if [ "$retry" -eq 0 ]; then
|
||||||
# tmux display 'Unable to maximize pane'
|
# tmux display 'Unable to maximize pane'
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue