From a62ec4eb989f41ace8e6b7f085349a2bce964d68 Mon Sep 17 00:00:00 2001 From: Tommy Allen Date: Thu, 23 Mar 2017 20:38:01 -0400 Subject: health.vim: tmux: Try -qvg and -qvgs (#6348) --- runtime/autoload/health/nvim.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/autoload') diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim index a1bf9b21cf..ca62de84d8 100644 --- a/runtime/autoload/health/nvim.vim +++ b/runtime/autoload/health/nvim.vim @@ -118,6 +118,12 @@ function! s:check_tmux() abort let cmd = 'tmux show-option -qvg default-terminal' let out = system(cmd) let tmux_default_term = substitute(out, '\v(\s|\r|\n)', '', 'g') + if empty(tmux_default_term) + let cmd = 'tmux show-option -qvgs default-terminal' + let out = system(cmd) + let tmux_default_term = substitute(out, '\v(\s|\r|\n)', '', 'g') + endif + if v:shell_error call health#report_error('command failed: '.cmd."\n".out) elseif tmux_default_term !=# $TERM -- cgit