commit e9ad613fdfd91c7d4b090e404976f9ea8667fae0
parent adcf7a221984d61fc472c12875930783bef4e97a
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 5 Dec 2022 09:51:01 +0800
vim-patch:8.2.3109: check for $DISPLAY never fails
Problem: Check for $DISPLAY never fails.
Solution: Use eval().
https://github.com/vim/vim/commit/f6d877975ba93fc9b4bee2c5d2aff88dbf9bea59
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
@@ -126,7 +126,7 @@ endfunc
" Command to Check for an environment variable
command -nargs=1 CheckEnv call CheckEnv(<f-args>)
func CheckEnv(name)
- if empty('$' .. a:name)
+ if empty(eval('$' .. a:name))
throw 'Skipped: Environment variable ' .. a:name .. ' is not set'
endif
endfunc