From d791274a9d9b87dec5bd024904424e1ce21de5a6 Mon Sep 17 00:00:00 2001 From: Shadman Date: Sat, 3 Jul 2021 06:47:18 +0600 Subject: fixup(clipboard): Use case matching #14962 Context: https://github.com/neovim/neovim/pull/14848#discussion_r663203173 --- runtime/autoload/provider/clipboard.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') 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 -- cgit