mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
backport: fixup(clipboard): Fix error not properly handled #14984
fixes #14967
This commit is contained in:
@ -158,7 +158,9 @@ function! s:clipboard.get(reg) abort
|
||||
end
|
||||
|
||||
let clipboard_data = s:try_cmd(s:paste[a:reg])
|
||||
if match(&clipboard, '\v(unnamed|unnamedplus)') >= 0 && get(s:selections[a:reg].data, 0, []) ==# clipboard_data
|
||||
if match(&clipboard, '\v(unnamed|unnamedplus)') >= 0
|
||||
\ && type(clipboard_data) == v:t_list
|
||||
\ && get(s:selections[a:reg].data, 0, []) ==# clipboard_data
|
||||
" When system clipboard return is same as our cache return the cache
|
||||
" as it contains regtype information
|
||||
return s:selections[a:reg].data
|
||||
|
Reference in New Issue
Block a user