0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1855: Vim9: get error message when nothing is wrong

Problem:    Vim9: get error message when nothing is wrong.
Solution:   Check called_emsg instead of did_emsg. (closes #7143)
This commit is contained in:
Bram Moolenaar
2020-10-16 23:16:47 +02:00
parent 1e021e63c5
commit e13bdec6b9
4 changed files with 9 additions and 5 deletions

View File

@@ -550,7 +550,7 @@ call_bfunc(int func_idx, int argcount, ectx_T *ectx)
{
typval_T argvars[MAX_FUNC_ARGS];
int idx;
int did_emsg_before = did_emsg;
int called_emsg_before = called_emsg;
ectx_T *prev_ectx = current_ectx;
if (call_prepare(argcount, argvars, ectx) == FAIL)
@@ -566,7 +566,7 @@ call_bfunc(int func_idx, int argcount, ectx_T *ectx)
for (idx = 0; idx < argcount; ++idx)
clear_tv(&argvars[idx]);
if (did_emsg != did_emsg_before)
if (called_emsg != called_emsg_before)
return FAIL;
return OK;
}