aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadman <shadmansaleh3@gmail.com>2021-07-03 06:47:18 +0600
committerSean Dewar <seandewar@users.noreply.github.com>2021-09-14 13:15:37 +0100
commit2229e99ef918ad82c4d20d654b0299195f0ed15c (patch)
treebec7d8f94e1232355dacc3326bc0d88568051848
parent88336851ee1e9c3982195592ae2fc145ecfd3369 (diff)
downloadrneovim-2229e99ef918ad82c4d20d654b0299195f0ed15c.tar.gz
rneovim-2229e99ef918ad82c4d20d654b0299195f0ed15c.tar.bz2
rneovim-2229e99ef918ad82c4d20d654b0299195f0ed15c.zip
backport: fixup(clipboard): Use case matching #14962
Context: https://github.com/neovim/neovim/pull/14848#discussion_r663203173
-rw-r--r--runtime/autoload/provider/clipboard.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/provider/clipboard.vim b/runtime/autoload/provider/clipboard.vim
index dea79f21f0..0687abd4dc 100644
--- a/runtime/autoload/provider/clipboard.vim
+++ b/runtime/autoload/provider/clipboard.vim
@@ -158,7 +158,7 @@ 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 && 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