diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-27 22:47:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-27 22:47:51 +0200 |
commit | 4c17ad94ecb0a0fb26d6fface2614bc5172dea18 (patch) | |
tree | 3b26b172e38be6c1d762c58d7517ac79e21e0a0f /src/testdir/test_vim9_func.vim | |
parent | db93495d276642f63f80471fbcb900b9aa1e9e42 (diff) | |
download | vim-git-4c17ad94ecb0a0fb26d6fface2614bc5172dea18.tar.gz |
patch 8.2.0650: Vim9: script function can be deletedv8.2.0650
Problem: Vim9: script function can be deleted.
Solution: Disallow deleting script function. Delete functions when sourcing
a script again.
Diffstat (limited to 'src/testdir/test_vim9_func.vim')
-rw-r--r-- | src/testdir/test_vim9_func.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index f3721ba9f..2ee91f1ab 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -353,7 +353,7 @@ endfunc def Test_delfunc() let lines =<< trim END vim9script - def GoneSoon() + def g:GoneSoon() echo 'hello' enddef @@ -361,7 +361,7 @@ def Test_delfunc() GoneSoon() enddef - delfunc GoneSoon + delfunc g:GoneSoon CallGoneSoon() END writefile(lines, 'XToDelFunc') |