clipboard: Detach clipboard helper, so contents is kept after nvim exit

This commit is contained in:
Björn Linse 2016-01-04 17:15:45 +01:00
parent d0d5d17b69
commit 49f0417988

View File

@ -83,6 +83,7 @@ function! s:clipboard.set(lines, regtype, reg)
end
let selection.data = [a:lines, a:regtype]
let argv = split(s:copy[a:reg], " ")
let selection.detach = s:cache_enabled
let jobid = jobstart(argv, selection)
if jobid <= 0
echohl WarningMsg