diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-06 19:49:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-06 19:49:13 +0100 |
commit | 97f0eb169bf805c372b13c6bc9a03da2e75e3354 (patch) | |
tree | 878eecfe5ffa3da06ad1689d5bcf8c8c37cbb36e /src/testdir/script_util.vim | |
parent | 06618f94f1c9ed73a84ad5d6a8e1933b0b8da846 (diff) |
patch 9.0.0678: using exclamation marks on :functionv9.0.0678
Problem: Using exclamation marks on :function.
Solution: Use :func and :endfunc as usual.
Diffstat (limited to 'src/testdir/script_util.vim')
-rw-r--r-- | src/testdir/script_util.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/script_util.vim b/src/testdir/script_util.vim index 9913b1dfaf..28d6a621d6 100644 --- a/src/testdir/script_util.vim +++ b/src/testdir/script_util.vim @@ -48,7 +48,7 @@ endfunc " delete it afterwards. However, if an exception is thrown the file may remain, " the caller should call DeleteTheScript() afterwards. let s:script_name = '' -function! ExecAsScript(funcname) +func ExecAsScript(funcname) " Make a script from the function passed as argument. let s:script_name = MakeScript(a:funcname) @@ -56,9 +56,9 @@ function! ExecAsScript(funcname) exec "source" s:script_name call delete(s:script_name) let s:script_name = '' -endfunction +endfunc -function! DeleteTheScript() +func DeleteTheScript() if s:script_name call delete(s:script_name) let s:script_name = '' |