Mercurial > vim
annotate src/testdir/test_eval_func.vim @ 15814:99ebf78686a9 v8.1.0914
patch 8.1.0914: code related to findfile() is spread out
commit https://github.com/vim/vim/commit/5fd0f5052f9a312bb4cfe7b4176b1211d45127ee
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 13 23:13:28 2019 +0100
patch 8.1.0914: code related to findfile() is spread out
Problem: Code related to findfile() is spread out.
Solution: Put findfile() related code into a new source file. (Yegappan
Lakshmanan, closes #3934)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 Feb 2019 23:15:05 +0100 |
parents | 63b02fcf1361 |
children |
rev | line source |
---|---|
5850 | 1 " Vim script used in test_eval.in. Needed for script-local function. |
2 | |
15406
63b02fcf1361
patch 8.1.0711: test files still use function!
Bram Moolenaar <Bram@vim.org>
parents:
5850
diff
changeset
|
3 func s:Testje() |
5850 | 4 return "foo" |
5 endfunc | |
6 let Bar = function('s:Testje') | |
7 $put ='s:Testje exists: ' . exists('s:Testje') | |
8 $put ='func s:Testje exists: ' . exists('*s:Testje') | |
9 $put ='Bar exists: ' . exists('Bar') | |
10 $put ='func Bar exists: ' . exists('*Bar') |