mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
vim-patch:8.0.0655: not easy to make sure a function does not exist
Problem: Not easy to make sure a function does not exist.
Solution: Add ! as an optional argument to :delfunc.
d6abcd154c
This commit is contained in:
@@ -1242,6 +1242,16 @@ func Test_endfunction_trailing()
|
||||
set verbose=0
|
||||
endfunc
|
||||
|
||||
func Test_delfunction_force()
|
||||
delfunc! Xtest
|
||||
delfunc! Xtest
|
||||
func Xtest()
|
||||
echo 'nothing'
|
||||
endfunc
|
||||
delfunc! Xtest
|
||||
delfunc! Xtest
|
||||
endfunc
|
||||
|
||||
"-------------------------------------------------------------------------------
|
||||
" Modelines {{{1
|
||||
" vim: ts=8 sw=4 tw=80 fdm=marker
|
||||
|
Reference in New Issue
Block a user