mirror of
https://github.com/neovim/neovim
synced 2025-07-16 17:21:49 +00:00
clipboard: Detach clipboard helper, so contents is kept after nvim exit
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user