diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-16 07:50:18 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-16 15:04:40 +0800 |
commit | b75634e55ee4cdfee7917b29f39e3ca1307cb059 (patch) | |
tree | da8d1238434caa88c4db1b511b68d499be4809f0 /src/nvim/ex_eval.c | |
parent | 54dab9ed9e200f7c5bcac4a8f4901770fa15fa4f (diff) | |
download | rneovim-b75634e55ee4cdfee7917b29f39e3ca1307cb059.tar.gz rneovim-b75634e55ee4cdfee7917b29f39e3ca1307cb059.tar.bz2 rneovim-b75634e55ee4cdfee7917b29f39e3ca1307cb059.zip |
vim-patch:9.0.0370: cleaning up afterwards can make a function messy
Problem: Cleaning up afterwards can make a function messy.
Solution: Add the :defer command.
https://github.com/vim/vim/commit/1d84f7608f1e41dad03b8cc7925895437775f7c0
Omit EX_EXPR_ARG: Vim9 script only.
Make :def throw E319 to avoid confusing behavior.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r-- | src/nvim/ex_eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index 5404ae6731..12d1f3d9bd 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -1966,7 +1966,7 @@ void rewind_conditionals(cstack_T *cstack, int idx, int cond_type, int *cond_lev /// Handle ":endfunction" when not after a ":function" void ex_endfunction(exarg_T *eap) { - emsg(_("E193: :endfunction not inside a function")); + semsg(_(e_str_not_inside_function), ":endfunction"); } /// @return true if the string "p" looks like a ":while" or ":for" command. |