aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/mapping.c')
-rw-r--r--src/nvim/mapping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c
index ab9d68f911..3dc66f7dba 100644
--- a/src/nvim/mapping.c
+++ b/src/nvim/mapping.c
@@ -2805,7 +2805,8 @@ void modify_keymap(uint64_t channel_id, Buffer buffer, bool is_unmap, String mod
goto fail_and_free;
case 5:
api_set_error(err, kErrorTypeException,
- "E227: mapping already exists for %s", parsed_args.lhs);
+ 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!");