mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
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.
1d84f7608f
Omit EX_EXPR_ARG: Vim9 script only.
Make :def throw E319 to avoid confusing behavior.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user