1
0
forked from aniani/vim

patch 8.2.3109: check for $DISPLAY never fails

Problem:    Check for $DISPLAY never fails.
Solution:   Use eval().
This commit is contained in:
Bram Moolenaar
2021-07-05 17:49:02 +02:00
parent d6fa7bd5b9
commit f6d877975b
2 changed files with 3 additions and 1 deletions

View File

@@ -139,7 +139,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

View File

@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3109,
/**/
3108,
/**/