aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-09 16:55:07 +0800
committerGitHub <noreply@github.com>2022-03-09 16:55:07 +0800
commitc7512611bfc9b05ad252b167d5bd0494d524e40c (patch)
treee3a9b624e3898ba13ea9922c3741928bdc99f2cf /test
parent5ad63c3d983b54fb19928a4ec7fe8001f5f7da52 (diff)
parent5ac30eacf41848ffebcea692a913bc77a0a7424f (diff)
downloadrneovim-c7512611bfc9b05ad252b167d5bd0494d524e40c.tar.gz
rneovim-c7512611bfc9b05ad252b167d5bd0494d524e40c.tar.bz2
rneovim-c7512611bfc9b05ad252b167d5bd0494d524e40c.zip
Merge pull request #17502 from zeertzjq/vim-8.1.0999
vim-patch:8.1.0999: use register one too often and not properly tested
Diffstat (limited to 'test')
-rw-r--r--test/functional/provider/clipboard_spec.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/functional/provider/clipboard_spec.lua b/test/functional/provider/clipboard_spec.lua
index 986db96a18..5bdfec574e 100644
--- a/test/functional/provider/clipboard_spec.lua
+++ b/test/functional/provider/clipboard_spec.lua
@@ -50,29 +50,33 @@ local function basic_register_test(noblock)
text, stuff and some more
some some text, stuff and some more]])
- -- deleting a word to named ("a) updates "1 (and not "-)
+ -- deleting a word to named ("a) doesn't update "1 or "-
feed('gg"adwj"1P^"-P')
expect([[
, stuff and some more
- some textsome some text, stuff and some more]])
+ some some random text
+ some some text, stuff and some more]])
-- deleting a line does update ""
feed('ggdd""P')
expect([[
, stuff and some more
- some textsome some text, stuff and some more]])
+ some some random text
+ some some text, stuff and some more]])
feed('ggw<c-v>jwyggP')
if noblock then
expect([[
stuf
- me t
+ me s
, stuff and some more
- some textsome some text, stuff and some more]])
+ some some random text
+ some some text, stuff and some more]])
else
expect([[
stuf, stuff and some more
- me tsome textsome some text, stuff and some more]])
+ me ssome some random text
+ some some text, stuff and some more]])
end
-- pasting in visual does unnamed delete of visual selection