aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarrett Ruth <62671086+barrett-ruth@users.noreply.github.com>2022-10-29 19:37:47 -0400
committerGitHub <noreply@github.com>2022-10-30 07:37:47 +0800
commit2817411b7de3c85348e613ce97acff1f1cc5b781 (patch)
tree598688f7346acf0e659f6805ea88a251d6a5da0e
parent23080a4d7a9043913cb4875e18118731a4562032 (diff)
downloadrneovim-2817411b7de3c85348e613ce97acff1f1cc5b781.tar.gz
rneovim-2817411b7de3c85348e613ce97acff1f1cc5b781.tar.bz2
rneovim-2817411b7de3c85348e613ce97acff1f1cc5b781.zip
fix(health): correct tmux rgb verification (#20868)
Current RGB verification parses `tmux server-info`. Despite it being a tmux default alias to `tmux show-messages -JT`, it may be unavailable. Use `tmux show-messages -JT` directly instead.
-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 9b387095ee..be56658e03 100644
--- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim
@@ -235,7 +235,7 @@ function! s:check_tmux() abort
endif
" check for RGB capabilities
- let info = system(['tmux', 'server-info'])
+ let info = system(['tmux', 'show-messages', '-JT'])
let has_tc = stridx(info, " Tc: (flag) true") != -1
let has_rgb = stridx(info, " RGB: (flag) true") != -1
if !has_tc && !has_rgb