1
0
forked from aniani/vim

updated for version 7.4.268

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.
This commit is contained in:
Bram Moolenaar
2014-04-29 14:03:02 +02:00
parent d69bd9af3c
commit 355a95a079
6 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
" 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')