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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user