aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 09:51:01 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-05 09:51:08 +0800
commite9ad613fdfd91c7d4b090e404976f9ea8667fae0 (patch)
treec6c4fee9c821db3268e1a3d3466fd2dab50e875b
parentadcf7a221984d61fc472c12875930783bef4e97a (diff)
downloadrneovim-e9ad613fdfd91c7d4b090e404976f9ea8667fae0.tar.gz
rneovim-e9ad613fdfd91c7d4b090e404976f9ea8667fae0.tar.bz2
rneovim-e9ad613fdfd91c7d4b090e404976f9ea8667fae0.zip
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>
-rw-r--r--src/nvim/testdir/check.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
index 0fba0e107b..a7ecf455bc 100644
--- 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