mirror of
https://github.com/neovim/neovim.git
synced 2025-11-05 02:04:29 +00:00
health.vim: tmux: Try -qvg and -qvgs (#6348)
This commit is contained in:
committed by
Justin M. Keyes
parent
06ed7a189b
commit
a62ec4eb98
@@ -118,6 +118,12 @@ function! s:check_tmux() abort
|
|||||||
let cmd = 'tmux show-option -qvg default-terminal'
|
let cmd = 'tmux show-option -qvg default-terminal'
|
||||||
let out = system(cmd)
|
let out = system(cmd)
|
||||||
let tmux_default_term = substitute(out, '\v(\s|\r|\n)', '', 'g')
|
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
|
if v:shell_error
|
||||||
call health#report_error('command failed: '.cmd."\n".out)
|
call health#report_error('command failed: '.cmd."\n".out)
|
||||||
elseif tmux_default_term !=# $TERM
|
elseif tmux_default_term !=# $TERM
|
||||||
|
|||||||
Reference in New Issue
Block a user