aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Allen <tommy@esdf.io>2017-03-23 20:38:01 -0400
committerJustin M. Keyes <justinkz@gmail.com>2017-03-24 01:38:01 +0100
commita62ec4eb989f41ace8e6b7f085349a2bce964d68 (patch)
treee426bf6fc66c96c627b769cc120b910678b2386f
parent06ed7a189b2c1dca88f307538b9739b989776068 (diff)
downloadrneovim-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.vim6
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