mirror of
https://github.com/neovim/neovim.git
synced 2025-12-21 05:45:45 +00:00
fix(api): use E226 instead of E227 for duplicate abbreviation (#33159)
(cherry picked from commit 99529577cc)
This commit is contained in:
committed by
github-actions[bot]
parent
1e8e74dbff
commit
2b2a90051e
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user