diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-17 09:08:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-17 09:38:09 +0800 |
commit | 7a3f86481e96e5c30db5af74760e475bac8cc403 (patch) | |
tree | 32a6104e5d40df885d884bd72d20a0c9a54e1390 /src/nvim/globals.h | |
parent | 6bfba3660c5fbb22104cd87bd66a1381007fca22 (diff) | |
download | rneovim-7a3f86481e96e5c30db5af74760e475bac8cc403.tar.gz rneovim-7a3f86481e96e5c30db5af74760e475bac8cc403.tar.bz2 rneovim-7a3f86481e96e5c30db5af74760e475bac8cc403.zip |
vim-patch:9.0.0419: the :defer command does not check the function arguments
Problem: The :defer command does not check the function argument count and
types.
Solution: Check the function arguments when adding a deferred function.
https://github.com/vim/vim/commit/169003289fb4b2ad18fd7f5807e0d05efff0be85
Cherry-pick check_internal_func() from Vim, but use EvalFuncDef pointer
as first argument.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 66df1f8920..0c7f55714c 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -953,6 +953,7 @@ EXTERN const char e_dictreq[] INIT(= N_("E715: Dictionary required")); EXTERN const char e_blobidx[] INIT(= N_("E979: Blob index out of range: %" PRId64)); EXTERN const char e_invalblob[] INIT(= N_("E978: Invalid operation for Blob")); EXTERN const char e_toomanyarg[] INIT(= N_("E118: Too many arguments for function: %s")); +EXTERN const char e_toofewarg[] INIT(= N_("E119: Not enough arguments for function: %s")); EXTERN const char e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); EXTERN const char e_listreq[] INIT(= N_("E714: List required")); EXTERN const char e_listblobreq[] INIT(= N_("E897: List or Blob required")); |