comparison src/testdir/test_expr.vim @ 9919:885e3c9c0e10 v7.4.2233

commit https://github.com/vim/vim/commit/843b884461de1c79a1d2748549776fb13fc94360 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 21 14:36:15 2016 +0200 patch 7.4.2233 Problem: Crash when using funcref() with invalid name. (Dominique Pelle) Solution: Check for NULL translated name.
author Christian Brabandt <cb@256bit.org>
date Sun, 21 Aug 2016 14:45:05 +0200
parents b01afb4e8f66
children 935e13935848
comparison
equal deleted inserted replaced
9918:434585ac5cf2 9919:885e3c9c0e10
235 endfunc 235 endfunc
236 call assert_equal(2, OneByName()) 236 call assert_equal(2, OneByName())
237 call assert_equal(1, OneByRef()) 237 call assert_equal(1, OneByRef())
238 let OneByRef = funcref('One') 238 let OneByRef = funcref('One')
239 call assert_equal(2, OneByRef()) 239 call assert_equal(2, OneByRef())
240 call assert_fails('echo funcref("{")', 'E475:')
240 endfunc 241 endfunc
241 242
242 func Test_setmatches() 243 func Test_setmatches()
243 hi def link 1 Comment 244 hi def link 1 Comment
244 hi def link 2 PreProc 245 hi def link 2 PreProc