diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-09 20:46:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 20:46:30 +0800 |
commit | 60e3940b4a94b2d089147579c7d62747543f0385 (patch) | |
tree | 0a7034bf1eacbc7508876e4e5558655c20e28d09 /test/functional/editor/put_spec.lua | |
parent | 3959f3a9c8aa040f3562b0a5fd442c9c2f0a4f9a (diff) | |
parent | 3fe47647c7b902d882d3d72158f2712490506a75 (diff) | |
download | rneovim-60e3940b4a94b2d089147579c7d62747543f0385.tar.gz rneovim-60e3940b4a94b2d089147579c7d62747543f0385.tar.bz2 rneovim-60e3940b4a94b2d089147579c7d62747543f0385.zip |
Merge pull request #17346 from zeertzjq/vim-8.2.4242
vim-patch:8.2.{4242,4315}: put in Visual mode cannot be repeated
Diffstat (limited to 'test/functional/editor/put_spec.lua')
-rw-r--r-- | test/functional/editor/put_spec.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/functional/editor/put_spec.lua b/test/functional/editor/put_spec.lua index fdda2be131..c367f8fdd0 100644 --- a/test/functional/editor/put_spec.lua +++ b/test/functional/editor/put_spec.lua @@ -507,7 +507,9 @@ describe('put command', function() return function(exception_table, after_redo) test_expect(exception_table, after_redo) if selection_string then - eq(selection_string, getreg('"')) + if not conversion_table.put_backwards then + eq(selection_string, getreg('"')) + end else eq('test_string"', getreg('"')) end @@ -714,7 +716,9 @@ describe('put command', function() expect_base, conversion_table) return function(exception_table, after_redo) test_expect(exception_table, after_redo) - eq('Line of words 1\n', getreg('"')) + if not conversion_table.put_backwards then + eq('Line of words 1\n', getreg('"')) + end end end local base_expect_string = [[ @@ -748,7 +752,9 @@ describe('put command', function() end, expect_base, conversion_table) return function(e,c) test_expect(e,c) - eq('Lin\nLin', getreg('"')) + if not conversion_table.put_backwards then + eq('Lin\nLin', getreg('"')) + end end end |