Mercurial > vim
comparison src/vim9execute.c @ 23177:cc24ac009f29 v8.2.2134
patch 8.2.2134: Vim9: get E1099 when autocmd triggered in builtin function
Commit: https://github.com/vim/vim/commit/57f799e6a4a56f41570c752c66dc2f692b1f2c2f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 12 20:42:19 2020 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Dec 2020 20:45:03 +0100 |
parents | 6aa8ddf7a3fa |
children | ccbbbbed371f |
comparison
equal
deleted
inserted
replaced
23176:f77a88165ed6 | 23177:cc24ac009f29 |
---|---|
581 | 581 |
582 // Clear the arguments. | 582 // Clear the arguments. |
583 for (idx = 0; idx < argcount; ++idx) | 583 for (idx = 0; idx < argcount; ++idx) |
584 clear_tv(&argvars[idx]); | 584 clear_tv(&argvars[idx]); |
585 | 585 |
586 if (did_emsg != did_emsg_before) | 586 if (did_emsg > did_emsg_before) |
587 return FAIL; | 587 return FAIL; |
588 return OK; | 588 return OK; |
589 } | 589 } |
590 | 590 |
591 /* | 591 /* |