aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-21 11:45:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-21 18:42:45 +0100
commita185ab70fd2eb8d55f1156cf7d5513338a309917 (patch)
tree93aa06b95153a3e1d4a0c83063fa7bdd71edecbe /src/nvim/eval.c
parent52778d62fcf6521f9a2b844340951247599b7936 (diff)
downloadrneovim-a185ab70fd2eb8d55f1156cf7d5513338a309917.tar.gz
rneovim-a185ab70fd2eb8d55f1156cf7d5513338a309917.tar.bz2
rneovim-a185ab70fd2eb8d55f1156cf7d5513338a309917.zip
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. https://github.com/vim/vim/commit/d6abcd154cdc6a8dd4b7c6ccad37617ea8a1b4aa
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 28c590c0b4..48525c2891 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -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) {