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:
parent
a83ba39f09
commit
57eeffcf0e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue