diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-21 20:55:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-21 20:55:26 +0100 |
commit | 94d9f4fa65bce6f116cf89bfdabdf5a06509056f (patch) | |
tree | c71357635f104aa77f3aa70772a729195c82b4ba /src/testdir/test_textobjects.vim | |
parent | 44f0bd878ab6525eb50f2e05a13c0854164cdec2 (diff) | |
download | vim-git-94d9f4fa65bce6f116cf89bfdabdf5a06509056f.tar.gz |
patch 8.1.2330: vi' does not always work when 'selection' is exclusivev8.1.2330
Problem: vi' does not always work when 'selection' is exclusive.
Solution: Adjust start position.
Diffstat (limited to 'src/testdir/test_textobjects.vim')
-rw-r--r-- | src/testdir/test_textobjects.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_textobjects.vim b/src/testdir/test_textobjects.vim index 5702a6ad8..042c53421 100644 --- a/src/testdir/test_textobjects.vim +++ b/src/testdir/test_textobjects.vim @@ -45,11 +45,18 @@ func Test_quote_selection_selection_exclusive() new call setline(1, "a 'bcde' f") set selection=exclusive + exe "norm! fdvhi'y" call assert_equal('bcde', @") + let @"='dummy' exe "norm! $gevi'y" call assert_equal('bcde', @") + + let @"='dummy' + exe "norm! 0fbhvi'y" + call assert_equal('bcde', @") + set selection&vim bw! endfunc |