aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-27 19:43:35 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-27 19:43:35 -0500
commit997892157abcf0b4047ec890520c9f77473d94b9 (patch)
tree957c40821b5aeaec86bf1ac3d7f29bcde8294c5c /test
parent475d0e213cd455db59a9e69305ec2d15e5495a1a (diff)
parentda85859567ac8959937b52c51d01d46ed4515a24 (diff)
downloadrneovim-997892157abcf0b4047ec890520c9f77473d94b9.tar.gz
rneovim-997892157abcf0b4047ec890520c9f77473d94b9.tar.bz2
rneovim-997892157abcf0b4047ec890520c9f77473d94b9.zip
Merge #1814 'clipboard: don't clobber "0 when deleting to unnamed'
Diffstat (limited to 'test')
-rw-r--r--test/functional/clipboard/clipboard_provider_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua
index c412c26c1a..1a798ec48c 100644
--- a/test/functional/clipboard/clipboard_provider_spec.lua
+++ b/test/functional/clipboard/clipboard_provider_spec.lua
@@ -38,6 +38,26 @@ local function basic_register_test()
expect([[
some text, stuff and some more
random text]])
+
+ -- deleting line or word uses "1/"- and doesn't clobber "0
+ -- and deleting word to unnamed doesn't clobber "1
+ feed('ggyyjdddw"0p"1p"-P')
+ expect([[
+ text, stuff and some more
+ some text, stuff and some more
+ some random text]])
+
+ -- delete line doesn't clobber "-
+ feed('dd"-P')
+ expect([[
+ text, stuff and some more
+ some some text, stuff and some more]])
+
+ -- deleting a word to named ("a) updates "1 (and not "-)
+ feed('gg"adwj"1P^"-P')
+ expect([[
+ , stuff and some more
+ some textsome some text, stuff and some more]])
reset()
end