aboutsummaryrefslogtreecommitdiff
path: root/test/functional/provider/clipboard_spec.lua
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-06-18 18:17:27 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-07-01 15:01:01 +0600
commit47a08ec72ed27ef0ba2519865ebcedf9f62abe8e (patch)
tree363d0f219cece22fa513ddeb14e6a4c554887db5 /test/functional/provider/clipboard_spec.lua
parent21444552c06240b68fd1ad2c3be4e83f64a10882 (diff)
downloadrneovim-47a08ec72ed27ef0ba2519865ebcedf9f62abe8e.tar.gz
rneovim-47a08ec72ed27ef0ba2519865ebcedf9f62abe8e.tar.bz2
rneovim-47a08ec72ed27ef0ba2519865ebcedf9f62abe8e.zip
Tests(clipboard): Add test for block paste
Diffstat (limited to 'test/functional/provider/clipboard_spec.lua')
-rw-r--r--test/functional/provider/clipboard_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/provider/clipboard_spec.lua b/test/functional/provider/clipboard_spec.lua
index 2c681eb9d8..e5e21f11a6 100644
--- a/test/functional/provider/clipboard_spec.lua
+++ b/test/functional/provider/clipboard_spec.lua
@@ -506,6 +506,20 @@ describe('clipboard (with fake clipboard.vim)', function()
feed('p')
eq('textstar', meths.get_current_line())
end)
+
+ it('Block paste works currectly', function()
+ insert([[
+ aabbcc
+ ddeeff
+ ]])
+ feed('gg^<C-v>') -- Goto start of top line enter visual block mode
+ feed('3ljy^k') -- yank 4x2 block & goto initial location
+ feed('P') -- Paste it infront
+ expect([[
+ aabbaabbcc
+ ddeeddeeff
+ ]])
+ end)
end)
describe('clipboard=unnamedplus', function()