diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim index 198c497d48..5952a1768b 100644 --- a/runtime/autoload/provider/clipboard.vim +++ b/runtime/autoload/provider/clipboard.vim @@ -255,7 +255,7 @@ function! provider#clipboard#Executable() abort return s:set_clip() elseif executable('termux-clipboard-set') return s:set_termux() - elseif executable('tmux') && (!empty($TMUX) || 0 == jobwait([jobstart(['tmux', 'list-buffers'])], 2000)[0]) + elseif !empty($TMUX) && executable('tmux') return s:set_tmux() elseif get(get(g:, 'termfeatures', {}), 'osc52') && &clipboard ==# '' " Don't use OSC 52 when 'clipboard' is set. It can be slow and cause a lot diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 221a07bd34..e0db5ab6b1 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -307,6 +307,7 @@ OPTIONS • |g:clipboard| accepts a string name to force any builtin clipboard tool. • 'busy' sets a buffer "busy" status. Indicated in the default statusline. • 'pumborder' adds a border to the popup menu. +• |g:clipboard| autodetection only selects tmux when running inside tmux PERFORMANCE