1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2019-11-21 20:55:26 +01:00
parent 44f0bd878a
commit 94d9f4fa65
3 changed files with 29 additions and 7 deletions

View File

@@ -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