mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0626: Vim9: wrong syntax of function in Vim9 script
Problem: Vim9: wrong syntax of function in Vim9 script. Solution: Give error for missing space. Implement :echomsg and :echoerr. (closes #5670)
This commit is contained in:
@@ -34,8 +34,6 @@ static char *e_float_as_string = N_("E806: using Float as a String");
|
||||
*/
|
||||
static int current_copyID = 0;
|
||||
|
||||
static int echo_attr = 0; // attributes used for ":echo"
|
||||
|
||||
/*
|
||||
* Info used by a ":for" loop.
|
||||
*/
|
||||
@@ -6145,7 +6143,6 @@ ex_execute(exarg_T *eap)
|
||||
char_u *p;
|
||||
garray_T ga;
|
||||
int len;
|
||||
int save_did_emsg;
|
||||
|
||||
ga_init2(&ga, 1, 80);
|
||||
|
||||
@@ -6213,8 +6210,9 @@ ex_execute(exarg_T *eap)
|
||||
}
|
||||
else if (eap->cmdidx == CMD_echoerr)
|
||||
{
|
||||
int save_did_emsg = did_emsg;
|
||||
|
||||
// We don't want to abort following commands, restore did_emsg.
|
||||
save_did_emsg = did_emsg;
|
||||
emsg(ga.ga_data);
|
||||
if (!force_abort)
|
||||
did_emsg = save_did_emsg;
|
||||
|
Reference in New Issue
Block a user