mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 7.4.2233
Problem: Crash when using funcref() with invalid name. (Dominique Pelle) Solution: Check for NULL translated name.
This commit is contained in:
@@ -237,6 +237,7 @@ func Test_funcref()
|
||||
call assert_equal(1, OneByRef())
|
||||
let OneByRef = funcref('One')
|
||||
call assert_equal(2, OneByRef())
|
||||
call assert_fails('echo funcref("{")', 'E475:')
|
||||
endfunc
|
||||
|
||||
func Test_setmatches()
|
||||
|
Reference in New Issue
Block a user