Patch 8.2.3109
Problem:Check for $DISPLAY never fails.
Solution: Use eval().
Files: src/testdir/check.vim
*** ../vim-8.2.3108/src/testdir/check.vim 2021-07-05 14:10:00.431729296
+0200
--- src/testdir/check.vim 2021-07-05 17:47:04.986038313 +0200
***
*** 139,145
" Command to Check for an environment variable
command -nargs=1 CheckEnv call CheckEnv()
func CheckEnv(name)
! if empty('$' .. a:name)
throw 'Skipped: Environment variable ' .. a:name .. ' is not set'
endif
endfunc
--- 139,145
" Command to Check for an environment variable
command -nargs=1 CheckEnv call CheckEnv()
func CheckEnv(name)
! if empty(eval('$' .. a:name))
throw 'Skipped: Environment variable ' .. a:name .. ' is not set'
endif
endfunc
*** ../vim-8.2.3108/src/version.c 2021-07-05 14:10:00.431729296 +0200
--- src/version.c 2021-07-05 17:48:44.085929640 +0200
***
*** 757,758
--- 757,760
{ /* Add new patch number below this line */
+ /**/
+ 3109,
/**/
--
>From "know your smileys":
:-XMy lips are sealed
/// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\help me help AIDS victims -- http://ICCF-Holland.org///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202107051550.165FoYXs2831603%40masaka.moolenaar.net.