0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.2134: Vim9: get E1099 when autocmd triggered in builtin function

Problem:    Vim9: get E1099 when autocmd triggered in builtin function.
Solution:   Check that did_emsg increased instead of checking that it changed.
            (closes #7448)
This commit is contained in:
Bram Moolenaar
2020-12-12 20:42:19 +01:00
parent 2a9d5d386b
commit 57f799e6a4
3 changed files with 23 additions and 1 deletions

View File

@@ -583,7 +583,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 (did_emsg > did_emsg_before)
return FAIL;
return OK;
}