1
0
Fork 0
mirror of synced 2024-11-17 23:15:35 -05:00

raised _maximize_pane() retry count and sleep duration, fixes #328

this helps when running under WSL where fork() is slow
This commit is contained in:
Gregory Pakosz 2020-03-11 15:10:51 +01:00
parent a83ba39f09
commit 57eeffcf0e

View file

@ -222,9 +222,9 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
# 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%.*}
#
# retry=10
# retry=1000
# 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.05
# sleep 0.1
# retry=$((retry - 1))
# done
# if [ "$retry" -eq 0 ]; then