mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fixup(clipboard): Use case matching #14962
Context: https://github.com/neovim/neovim/pull/14848#discussion_r663203173
This commit is contained in:
parent
94583483f9
commit
d791274a9d
@ -158,7 +158,7 @@ function! s:clipboard.get(reg) abort
|
|||||||
end
|
end
|
||||||
|
|
||||||
let clipboard_data = s:try_cmd(s:paste[a:reg])
|
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 && get(s:selections[a:reg].data, 0, []) ==# clipboard_data
|
||||||
" When system clipboard return is same as our cache return the cache
|
" When system clipboard return is same as our cache return the cache
|
||||||
" as it contains regtype information
|
" as it contains regtype information
|
||||||
return s:selections[a:reg].data
|
return s:selections[a:reg].data
|
||||||
|
Loading…
Reference in New Issue
Block a user