forked from aniani/vim
patch 8.2.2694: when 'matchpairs' is empty every character beeps
Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz)
Solution: Bail out when no character in 'matchpairs' was found.
(closes #8053) Add assert_nobeep().
This commit is contained in:
@@ -858,6 +858,14 @@ func Test_mps_latin1()
|
||||
close!
|
||||
endfunc
|
||||
|
||||
func Test_empty_matchpairs()
|
||||
split
|
||||
set matchpairs= showmatch
|
||||
call assert_nobeep('call feedkeys("ax\tx\t\<Esc>", "xt")')
|
||||
set matchpairs& noshowmatch
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_mps_error()
|
||||
let encoding_save = &encoding
|
||||
|
||||
|
||||
Reference in New Issue
Block a user