diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-15 19:04:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-15 19:04:05 +0100 |
commit | 36343ae0fb7247e060abfd35fb8e4337b33abb4b (patch) | |
tree | fe5bf440c03d0535560b20174c1194dbce09c678 /src/testdir/test_visual.vim | |
parent | c8b673557390e5cd20bc0a4c2786d0db1d77a24c (diff) |
patch 9.0.0765: with a Visual block a put command column may go negativev9.0.0765
Problem: With a Visual block a put command column may go negative.
Solution: Check that the column does not become negative.
Diffstat (limited to 'src/testdir/test_visual.vim')
-rw-r--r-- | src/testdir/test_visual.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim index 66a44c52ca..a7f8ec4d41 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -483,6 +483,18 @@ func Test_visual_block_put() bw! endfunc +func Test_visual_block_put_invalid() + enew! + behave mswin + norm yy + norm v)Ps/^/ + " this was causing the column to become negative + silent norm ggv)P + + bwipe! + behave xterm +endfunc + " Visual modes (v V CTRL-V) followed by an operator; count; repeating func Test_visual_mode_op() new |