aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-30 07:12:01 +0800
committerGitHub <noreply@github.com>2025-03-30 07:12:01 +0800
commit99529577cc9f5229cbb3dac8ab4782bd43094102 (patch)
tree426e4281a3123b9ada2be680721e91ba82c621ab /src
parent5f9f5bc04d0bec0fbf100dd5a0de2b38daf882fb (diff)
downloadrneovim-99529577cc9f5229cbb3dac8ab4782bd43094102.tar.gz
rneovim-99529577cc9f5229cbb3dac8ab4782bd43094102.tar.bz2
rneovim-99529577cc9f5229cbb3dac8ab4782bd43094102.zip
fix(api): use E226 instead of E227 for duplicate abbreviation (#33159)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mapping.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c
index 147985377e..3dc66f7dba 100644
--- a/src/nvim/mapping.c
+++ b/src/nvim/mapping.c
@@ -2804,7 +2804,9 @@ void modify_keymap(uint64_t channel_id, Buffer buffer, bool is_unmap, String mod
api_set_error(err, kErrorTypeException, e_nomap, 0);
goto fail_and_free;
case 5:
- api_set_error(err, kErrorTypeException, e_mapping_already_exists_for_str, lhs.data);
+ api_set_error(err, kErrorTypeException,
+ is_abbrev ? e_abbreviation_already_exists_for_str
+ : e_mapping_already_exists_for_str, lhs.data);
goto fail_and_free;
default:
assert(false && "Unrecognized return code!");