diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-01 06:27:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 06:27:30 +0800 |
commit | e0efbc6e03f1d64e49805bb9be7d41ff9a27569f (patch) | |
tree | f1fe02c1e071dd55f690e68a462ee4fd4b9b9bea /src/nvim/mapping.c | |
parent | 888966652d2421788f01f9371fa58ddcce08167b (diff) | |
download | rneovim-e0efbc6e03f1d64e49805bb9be7d41ff9a27569f.tar.gz rneovim-e0efbc6e03f1d64e49805bb9be7d41ff9a27569f.tar.bz2 rneovim-e0efbc6e03f1d64e49805bb9be7d41ff9a27569f.zip |
refactor: use ERROR_SET() to check for error (#30594)
Replaces the only two places where kErrorTypeNone is checked explicitly.
Diffstat (limited to 'src/nvim/mapping.c')
-rw-r--r-- | src/nvim/mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c index 8080280da6..e055ebc2fa 100644 --- a/src/nvim/mapping.c +++ b/src/nvim/mapping.c @@ -1651,7 +1651,7 @@ char *eval_map_expr(mapblock_T *mp, int c) p = string_to_cstr(ret.data.string); } api_free_object(ret); - if (err.type != kErrorTypeNone) { + if (ERROR_SET(&err)) { semsg_multiline("E5108: %s", err.msg); api_clear_error(&err); } |