0
0
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:
Bram Moolenaar
2016-08-21 14:36:15 +02:00
parent e07e797db0
commit 843b884461
3 changed files with 6 additions and 3 deletions

View File

@@ -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()