diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-01-10 17:29:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-10 17:29:29 +0000 |
commit | 79c11e399be3d96ed6d1c7458b1380e878ec717b (patch) | |
tree | b139ea23e8bba198910da239d3aae57e6ba18d27 /src/testdir/test_visual.vim | |
parent | 2bc849ff811059d25310399f982c6706faa7eb35 (diff) |
patch 9.0.1172: when 'selection' is "exclusive" then "1v" is one char shortv9.0.1172
Problem: When 'selection' is "exclusive" then "1v" is one char short.
Solution: Add one character when 'selection' is "exclusive. (closes #11791)
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 573a2cf490..df781a0197 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -1336,6 +1336,18 @@ func Test_visual_reselect_with_count() bwipe! endfunc +func Test_visual_reselect_exclusive() + new + call setline(1, ['abcde', 'abcde']) + set selection=exclusive + normal 1G0viwd + normal 2G01vd + call assert_equal(['', ''], getline(1, 2)) + + set selection& + bwipe! +endfunc + func Test_visual_block_insert_round_off() new " The number of characters are tuned to fill a 4096 byte allocated block, |