mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
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.
1e1153600c
Some of the changes were already applied previously.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user