diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-21 20:29:13 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-22 20:10:12 -0500 |
| commit | cb107d28a00c3379dfb17df252c742c87369afcb (patch) | |
| tree | 00f84786ece07abc1a69beccae2ccbf2fd6dcb1c /src/nvim/testdir | |
| parent | 3d7d52ee8b4d887c0bfa08b5a7c15e1e2d784a35 (diff) | |
| download | rneovim-cb107d28a00c3379dfb17df252c742c87369afcb.tar.gz rneovim-cb107d28a00c3379dfb17df252c742c87369afcb.tar.bz2 rneovim-cb107d28a00c3379dfb17df252c742c87369afcb.zip | |
vim-patch:8.1.2330: vi' does not always work when 'selection' is exclusive
Problem: vi' does not always work when 'selection' is exclusive.
Solution: Adjust start position.
https://github.com/vim/vim/commit/94d9f4fa65bce6f116cf89bfdabdf5a06509056f
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_textobjects.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textobjects.vim b/src/nvim/testdir/test_textobjects.vim index 448b2dc51c..b20c4df311 100644 --- a/src/nvim/testdir/test_textobjects.vim +++ b/src/nvim/testdir/test_textobjects.vim @@ -46,11 +46,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 |