vim-patch:8.1.2314: vi' sometimes does not select anything

Problem:    vi' sometimes does not select anything.
Solution:   Recognize an empty selection. (Christian Brabandt, closes vim/vim#5183)
7170b295b0
This commit is contained in:
Jan Edmund Lazo
2019-11-17 21:48:59 -05:00
parent e4b185893f
commit f484d3b2d4
2 changed files with 6 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ func Test_quote_selection_selection_exclusive()
set selection=exclusive
exe "norm! fdvhi'y"
call assert_equal('bcde', @")
let @"='dummy'
exe "norm! $gevi'y"
call assert_equal('bcde', @")
set selection&vim
bw!
endfunc