Mercurial > vim
changeset 25145:cf18d6749dbe v8.2.3109
patch 8.2.3109: check for $DISPLAY never fails
Commit: https://github.com/vim/vim/commit/f6d877975ba93fc9b4bee2c5d2aff88dbf9bea59
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 5 17:49:02 2021 +0200
patch 8.2.3109: check for $DISPLAY never fails
Problem: Check for $DISPLAY never fails.
Solution: Use eval().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Jul 2021 18:00:04 +0200 |
parents | 3bcc707376fb |
children | 84fff3a2c3d3 |
files | src/testdir/check.vim src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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(<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