aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_vimscript.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-07 05:34:20 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-07 05:34:20 +0800
commitfe621b4ac01c6865650794b8e986665be4fe0ae7 (patch)
tree9882e065f6e6fb118ace1353ad547f19bae9e877 /src/nvim/testdir/test_vimscript.vim
parente6e9ffb3456607747132e398039ea8de16553a52 (diff)
downloadrneovim-fe621b4ac01c6865650794b8e986665be4fe0ae7.tar.gz
rneovim-fe621b4ac01c6865650794b8e986665be4fe0ae7.tar.bz2
rneovim-fe621b4ac01c6865650794b8e986665be4fe0ae7.zip
vim-patch:8.1.0711: test files still use function!
Problem: Test files still use function!. Solution: Remove the exclamation mark. Fix overwriting a function. https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7 Some of the changes were already applied previously.
Diffstat (limited to 'src/nvim/testdir/test_vimscript.vim')
-rw-r--r--src/nvim/testdir/test_vimscript.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim
index a8c0c941c3..75a965f16d 100644
--- a/src/nvim/testdir/test_vimscript.vim
+++ b/src/nvim/testdir/test_vimscript.vim
@@ -25,7 +25,7 @@ com! -nargs=1 Xout call Xout(<args>)
" in the variable argument list. This function is useful if similar tests are
" to be made for a ":return" from a function call or a ":finish" in a script
" file.
-function! MakeScript(funcname, ...)
+func MakeScript(funcname, ...)
let script = tempname()
execute "redir! >" . script
execute "function" a:funcname
@@ -1224,11 +1224,11 @@ func Test_type()
" call assert_true(empty(v:none))
func ChangeYourMind()
- try
- return v:true
- finally
- return 'something else'
- endtry
+ try
+ return v:true
+ finally
+ return 'something else'
+ endtry
endfunc
call ChangeYourMind()