diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 14:17:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 14:17:06 +0800 |
commit | 86fe2c8d94d212af098002ce04c87fb73fdf9c52 (patch) | |
tree | f48445ed4f2cb998a56ef56709ef4a87c8411e0d /src/nvim/message.c | |
parent | a86295cd5c2bf15a11eb05e226fd8e226154f6a6 (diff) | |
parent | 6956971ec790e636b16eeaec798c826515da9834 (diff) | |
download | rneovim-86fe2c8d94d212af098002ce04c87fb73fdf9c52.tar.gz rneovim-86fe2c8d94d212af098002ce04c87fb73fdf9c52.tar.bz2 rneovim-86fe2c8d94d212af098002ce04c87fb73fdf9c52.zip |
Merge pull request #20941 from zeertzjq/vim-8.2.1183
vim-patch:8.2.{partial:1183,1184,1199,1479,1484,1631,1632}: assert_fails() patches
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index b608b59c9b..fa1c8036e6 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -663,6 +663,13 @@ static bool emsg_multiline(const char *s, bool multiline) return true; } + if (emsg_assert_fails_used && emsg_assert_fails_msg == NULL) { + emsg_assert_fails_msg = xstrdup(s); + emsg_assert_fails_lnum = SOURCING_LNUM; + xfree(emsg_assert_fails_context); + emsg_assert_fails_context = xstrdup(SOURCING_NAME == NULL ? "" : SOURCING_NAME); + } + // set "v:errmsg", also when using ":silent! cmd" set_vim_var_string(VV_ERRMSG, s, -1); |