diff options
author | Tommy Allen <tommy@esdf.io> | 2017-03-23 20:38:01 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-24 01:38:01 +0100 |
commit | a62ec4eb989f41ace8e6b7f085349a2bce964d68 (patch) | |
tree | e426bf6fc66c96c627b769cc120b910678b2386f | |
parent | 06ed7a189b2c1dca88f307538b9739b989776068 (diff) | |
download | rneovim-a62ec4eb989f41ace8e6b7f085349a2bce964d68.tar.gz rneovim-a62ec4eb989f41ace8e6b7f085349a2bce964d68.tar.bz2 rneovim-a62ec4eb989f41ace8e6b7f085349a2bce964d68.zip |
health.vim: tmux: Try -qvg and -qvgs (#6348)
-rw-r--r-- | runtime/autoload/health/nvim.vim | 6 |
1 files changed, 6 insertions, 0 deletions
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 |