mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
clipboard: Detach clipboard helper, so contents is kept after nvim exit
This commit is contained in:
parent
d0d5d17b69
commit
49f0417988
@ -83,6 +83,7 @@ function! s:clipboard.set(lines, regtype, reg)
|
|||||||
end
|
end
|
||||||
let selection.data = [a:lines, a:regtype]
|
let selection.data = [a:lines, a:regtype]
|
||||||
let argv = split(s:copy[a:reg], " ")
|
let argv = split(s:copy[a:reg], " ")
|
||||||
|
let selection.detach = s:cache_enabled
|
||||||
let jobid = jobstart(argv, selection)
|
let jobid = jobstart(argv, selection)
|
||||||
if jobid <= 0
|
if jobid <= 0
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
|
Loading…
Reference in New Issue
Block a user