1
0
Fork 0
mirror of synced 2024-11-03 01:08:59 -04:00

accomodate for slow shell init in _maximize_pane(). Fixes #170

This commit is contained in:
Gregory Pakosz 2018-07-19 08:55:10 +02:00
parent 7ebc59956a
commit 08334a6451

View file

@ -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
# #