mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.0907: when using :global clipboard isn't set correctly
Problem: When using :global clipboard isn't set correctly.
Solution: Set "clip_unnamed_saved" instead of "clip_unnamed". (Christian
Brabandt, closes vim/vim#6203, closes vim/vim#6198)
07188fc5ef
This commit is contained in:
parent
172f619b9a
commit
f35118ade4
@ -1,3 +1,4 @@
|
|||||||
|
source check.vim
|
||||||
|
|
||||||
func Test_yank_put_clipboard()
|
func Test_yank_put_clipboard()
|
||||||
new
|
new
|
||||||
@ -10,6 +11,16 @@ func Test_yank_put_clipboard()
|
|||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_global_set_clipboard()
|
||||||
|
CheckFeature clipboard_working
|
||||||
|
new
|
||||||
|
set clipboard=unnamedplus
|
||||||
|
let @+='clipboard' | g/^/set cb= | let @" = 'unnamed' | put
|
||||||
|
call assert_equal(['','unnamed'], getline(1, '$'))
|
||||||
|
set clipboard&
|
||||||
|
bwipe!
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_nested_global()
|
func Test_nested_global()
|
||||||
new
|
new
|
||||||
call setline(1, ['nothing', 'found', 'found bad', 'bad'])
|
call setline(1, ['nothing', 'found', 'found bad', 'bad'])
|
||||||
|
Loading…
Reference in New Issue
Block a user