mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:8.2.3109: check for $DISPLAY never fails
Problem: Check for $DISPLAY never fails.
Solution: Use eval().
f6d877975b
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
adcf7a2219
commit
e9ad613fdf
@ -126,7 +126,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
|
||||
|
Loading…
Reference in New Issue
Block a user