mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 07:41:51 +00:00
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.
94d9f4fa65
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user