forked from aniani/vim
Problem: Using exists() on a funcref for a script-local function does not
work.
Solution: Translate <SNR> to the special byte sequence. Add a test.
11 lines
322 B
VimL
11 lines
322 B
VimL
" Vim script used in test_eval.in. Needed for script-local function.
|
|
|
|
func! s:Testje()
|
|
return "foo"
|
|
endfunc
|
|
let Bar = function('s:Testje')
|
|
$put ='s:Testje exists: ' . exists('s:Testje')
|
|
$put ='func s:Testje exists: ' . exists('*s:Testje')
|
|
$put ='Bar exists: ' . exists('Bar')
|
|
$put ='func Bar exists: ' . exists('*Bar')
|