Skip to content

Commit

Permalink
clipboard: close stdout when copying via xclip
Browse files Browse the repository at this point in the history
  • Loading branch information
janlazo committed Dec 26, 2019
1 parent fcf8a3e commit 13dc2f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/autoload/provider/clipboard.vim
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function! s:clipboard.set(lines, regtype, reg) abort
if jobid > 0
call jobsend(jobid, a:lines)
call jobclose(jobid, 'stdin')
if argv[0] ==# 'xclip'
call jobclose(jobid, 'stdout')
call jobclose(jobid, 'stderr')
endif
let selection.owner = jobid
let ret = 1
else
Expand Down

0 comments on commit 13dc2f2

Please sign in to comment.