From 8d3172f4d4990a49b94eb4819fab272463292b12 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 30 Sep 2026 06:46:05 +0100 Subject: [PATCH] Fix test on macOS. --- regress/format-no-current-window.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regress/format-no-current-window.sh b/regress/format-no-current-window.sh index 07bec45cc..d8f19b0fe 100644 --- a/regress/format-no-current-window.sh +++ b/regress/format-no-current-window.sh @@ -26,7 +26,8 @@ FMT="$FMT #{window_active_clients} #{window_active_clients_list}" $TMUX kill-server 2>/dev/null # No session: the callbacks have nothing to read and must return empty. -out=$($TMUX start\; display-message -p "$FMT") || fail "display with no session" +out=$($TMUX start\; set -s exit-empty off \; display-message -p "$FMT") || + fail "display with no session" [ "$out" = " " ] || fail "no session expanded to '$out'" $TMUX new-session -d -s src -n one -- sleep 30 || fail "new-session src"