1
0
forked from aniani/vim

patch 8.2.0633: crash when using null partial in filter()

Problem:    Crash when using null partial in filter().
Solution:   Fix crash.  Add more tests. (Yegappan Lakshmanan, closes #5976)
This commit is contained in:
Bram Moolenaar
2020-04-24 22:47:31 +02:00
parent 92c461ef1b
commit 9d8d0b5c64
14 changed files with 114 additions and 4 deletions

View File

@@ -364,6 +364,10 @@ func Test_CmdCompletion()
com! -complete=custom, DoCmd
call assert_beeps("call feedkeys(':DoCmd \t', 'tx')")
" custom completion failure with the wrong function
com! -complete=custom,min DoCmd
call assert_fails("call feedkeys(':DoCmd \t', 'tx')", 'E118:')
delcom DoCmd
endfunc