From 502ef3a35685c7c4651befa1e8de68915be720dc Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Sun, 17 May 2026 10:59:31 +0800 Subject: [PATCH] Pin TERM in ttimeoutlen test (env-hermetic) --- scripts/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index ec86657..e3759e8 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -257,8 +257,8 @@ check_vim() { -c 'if maparg(",F", "n") !~# "gg=G" | cquit | endif' \ -c 'qa!' 2>&1 - XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \ - -c 'if &ttimeoutlen != 10 | cquit | endif' \ + TERM=xterm-256color XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \ + -c 'if g:is_tty || &ttimeoutlen != 10 | cquit | endif' \ -c 'qa!' 2>&1 TERM=linux XDG_CONFIG_HOME="$EMPTY_XDG" vim -u .vimrc -i NONE -es -N \