From: Bram Moolenaar Date: Mon, 5 Jul 2021 15:49:02 +0000 (+0200) Subject: patch 8.2.3109: check for $DISPLAY never fails X-Git-Tag: v8.2.3109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6d877975ba93fc9b4bee2c5d2aff88dbf9bea59;p=vim patch 8.2.3109: check for $DISPLAY never fails Problem: Check for $DISPLAY never fails. Solution: Use eval(). --- diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 504a1928e..6d2d564fa 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -139,7 +139,7 @@ endfunc " Command to Check for an environment variable command -nargs=1 CheckEnv call CheckEnv() func CheckEnv(name) - if empty('$' .. a:name) + if empty(eval('$' .. a:name)) throw 'Skipped: Environment variable ' .. a:name .. ' is not set' endif endfunc diff --git a/src/version.c b/src/version.c index 9b1ac9aa5..a36ec80cf 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3109, /**/ 3108, /**/