aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-07 02:15:34 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-07 02:15:34 +0100
commitb7f1885fab1cce27f3104b792ed07300b9561bf1 (patch)
tree15f6943744e66ba253abbf043ffa976ca46a48e1
parent85cfc4c4f9fdbd25e0ece129840d654c049f85b6 (diff)
downloadrneovim-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.vim2
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