aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-01-02 17:37:39 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2020-01-02 19:27:55 +0100
commit6e3793bf116f46930b9fcc4eb248f4589029d5ce (patch)
treebed66f27cff707170494316519a9cd79bcf84bf2
parentcbc8d72fde4b19176028490934ff7a447afe523c (diff)
downloadrneovim-6e3793bf116f46930b9fcc4eb248f4589029d5ce.tar.gz
rneovim-6e3793bf116f46930b9fcc4eb248f4589029d5ce.tar.bz2
rneovim-6e3793bf116f46930b9fcc4eb248f4589029d5ce.zip
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.
-rw-r--r--runtime/autoload/provider/clipboard.vim3
1 files changed, 1 insertions, 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