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:
@@ -139,7 +139,7 @@ endfunc
|
|||||||
" Command to Check for an environment variable
|
" Command to Check for an environment variable
|
||||||
command -nargs=1 CheckEnv call CheckEnv(<f-args>)
|
command -nargs=1 CheckEnv call CheckEnv(<f-args>)
|
||||||
func CheckEnv(name)
|
func CheckEnv(name)
|
||||||
if empty('$' .. a:name)
|
if empty(eval('$' .. a:name))
|
||||||
throw 'Skipped: Environment variable ' .. a:name .. ' is not set'
|
throw 'Skipped: Environment variable ' .. a:name .. ' is not set'
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -755,6 +755,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3109,
|
||||||
/**/
|
/**/
|
||||||
3108,
|
3108,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user