diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 02:15:34 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 02:15:34 +0100 |
commit | b7f1885fab1cce27f3104b792ed07300b9561bf1 (patch) | |
tree | 15f6943744e66ba253abbf043ffa976ca46a48e1 | |
parent | 85cfc4c4f9fdbd25e0ece129840d654c049f85b6 (diff) | |
download | rneovim-b7f1885fab1cce27f3104b792ed07300b9561bf1.tar.gz rneovim-b7f1885fab1cce27f3104b792ed07300b9561bf1.tar.bz2 rneovim-b7f1885fab1cce27f3104b792ed07300b9561bf1.zip |
health.vim: env var may be defined but empty #7498
-rw-r--r-- | runtime/autoload/health/nvim.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim index f8beaf6a0f..3d871faf5d 100644 --- a/runtime/autoload/health/nvim.vim +++ b/runtime/autoload/health/nvim.vim @@ -174,7 +174,7 @@ function! s:check_terminal() abort \ .(empty(kbs_entry) ? '? (not found)' : kdch1_entry)) endif for env_var in ['XTERM_VERSION', 'VTE_VERSION', 'TERM_PROGRAM', 'COLORTERM', 'SSH_TTY'] - if !empty(eval('$'.env_var)) + if !exists('$'.env_var) call health#report_info(printf("$%s='%s'", env_var, eval('$'.env_var))) endif endfor |