From 3e22d43c669e86bd06113f0485909c9cdbb1e1ec Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 7 Oct 2026 10:16:50 +0100 Subject: [PATCH] Fix tests. --- regress/new-pane-mouse-status.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/regress/new-pane-mouse-status.sh b/regress/new-pane-mouse-status.sh index 9f7ae1424..b72e6c74a 100755 --- a/regress/new-pane-mouse-status.sh +++ b/regress/new-pane-mouse-status.sh @@ -64,8 +64,11 @@ check_drag() { start=$1 end=$2 + sync=$3 - $TMUX set -g @drag-end '' || exit 1 + if [ -n "$sync" ]; then + $TMUX set -g @drag-end '' || exit 1 + fi # First move along the status line, then into the pane. The first # movement establishes the drag origin without dispatching new-pane. @@ -75,7 +78,9 @@ check_drag() mouse 48 18 "$end" M mouse 16 18 "$end" m - wait_option @drag-end done + if [ -n "$sync" ]; then + wait_option @drag-end done + fi panes=$($TMUX list-panes -F '#{pane_id}') || fail "server exited" [ "$panes" = "$BASE" ] || fail "status-line drag created a pane: $panes" @@ -121,7 +126,7 @@ for range in window pane control; do [ "$range" = control ] && want=control $TMUX set -g @status-drag '' || exit 1 - check_drag "$row" 9 + check_drag "$row" 9 sync wait_option @status-drag "$want" row=$((row + 1))