From 6e3793bf116f46930b9fcc4eb248f4589029d5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Linse?= Date: Thu, 2 Jan 2020 17:37:39 +0100 Subject: [PATCH] clipboard: do not close stderr together with stdout (fixup #11617) stderr is needed to get error messages in case of failure, and job handler expects it to be open. --- runtime/autoload/provider/clipboard.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim index e54d6ad95c..c86f7d0c2f 100644 --- a/runtime/autoload/provider/clipboard.vim +++ b/runtime/autoload/provider/clipboard.vim @@ -172,10 +172,9 @@ function! s:clipboard.set(lines, regtype, reg) abort if jobid > 0 call jobsend(jobid, a:lines) call jobclose(jobid, 'stdin') - " xclip does not close stdout,stderr when receiving input via stdin + " xclip does not close stdout when receiving input via stdin if argv[0] ==# 'xclip' call jobclose(jobid, 'stdout') - call jobclose(jobid, 'stderr') endif let selection.owner = jobid let ret = 1