aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-23 11:12:30 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-09 13:32:50 +0800
commit5ac30eacf41848ffebcea692a913bc77a0a7424f (patch)
tree7f6308470ff09a0e33673cf43e608e2eef8d667c /test
parentf6d507f5ba2a11f8f0a2bd976f38d2c0d170e91f (diff)
downloadrneovim-5ac30eacf41848ffebcea692a913bc77a0a7424f.tar.gz
rneovim-5ac30eacf41848ffebcea692a913bc77a0a7424f.tar.bz2
rneovim-5ac30eacf41848ffebcea692a913bc77a0a7424f.zip
vim-patch:8.1.0999: use register one too often and not properly tested
Problem: Use register one too often and not properly tested. Solution: Do not always use register one when specifying a register. (closes vim/vim#4085) Add more tests. https://github.com/vim/vim/commit/9d7fdd403a3a9ee0d008b6dcbcd2ecc9ec0f57b7
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