To: vim_dev@googlegroups.com Subject: Patch 8.2.3109 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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": :-X My lips are sealed /// Bram Moolenaar -- Bram@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 ///