commit | d6abcd154cdc6a8dd4b7c6ccad37617ea8a1b4aa | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jun 22 19:15:24 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jun 22 19:15:24 2017 +0200 |
tree | 746839083abe888f4424f18c38ac634eec06981b | |
parent | 663bb2331626944cea156374858131fcd323b9e9 [diff] [blame] |
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.
diff --git a/src/userfunc.c b/src/userfunc.c index de089bb..34da2ef 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -2807,7 +2807,8 @@ { if (fp == NULL) { - EMSG2(_(e_nofunc), eap->arg); + if (!eap->forceit) + EMSG2(_(e_nofunc), eap->arg); return; } if (fp->uf_calls > 0)