Skip to content

Commit

Permalink
patch 8.2.3109: check for $DISPLAY never fails
Browse files Browse the repository at this point in the history
Problem:    Check for $DISPLAY never fails.
Solution:   Use eval().
  • Loading branch information
brammool committed Jul 5, 2021
1 parent d6fa7bd commit f6d8779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/testdir/check.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3109,
/**/
3108,
/**/
Expand Down

0 comments on commit f6d8779

Please sign in to comment.