mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +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:
@@ -20863,7 +20863,9 @@ void ex_delfunction(exarg_T *eap)
|
||||
|
||||
if (!eap->skip) {
|
||||
if (fp == NULL) {
|
||||
EMSG2(_(e_nofunc), eap->arg);
|
||||
if (!eap->forceit) {
|
||||
EMSG2(_(e_nofunc), eap->arg);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (fp->uf_calls > 0) {
|
||||
|
Reference in New Issue
Block a user