diff options
author | James McCoy <jamessan@jamessan.com> | 2021-11-01 11:27:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 11:27:42 -0400 |
commit | b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e (patch) | |
tree | d8fc27ffbbb9ece2b15008b09d4b4a6b89d0d20b /src/nvim/keymap.c | |
parent | 961cd83b3b39855b232841f37ded856c8621bd90 (diff) | |
parent | 9e479ea05e00e63ccc985fc8ce4912c709f30111 (diff) | |
download | rneovim-b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e.tar.gz rneovim-b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e.tar.bz2 rneovim-b8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e.zip |
Merge pull request #16131 from jamessan/vim-8.1.0306
Diffstat (limited to 'src/nvim/keymap.c')
-rw-r--r-- | src/nvim/keymap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index b724d82f7c..fc2f9b04f5 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -647,7 +647,7 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp, } else if (end - bp > 4 && STRNICMP(bp, "char-", 5) == 0) { vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0, true); if (l == 0) { - EMSG(_(e_invarg)); + emsg(_(e_invarg)); return 0; } bp += l + 5; @@ -677,7 +677,7 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp, // <Char-123> or <Char-033> or <Char-0x33> vim_str2nr(last_dash + 6, NULL, &l, STR2NR_ALL, NULL, &n, 0, true); if (l == 0) { - EMSG(_(e_invarg)); + emsg(_(e_invarg)); return 0; } key = (int)n; @@ -891,7 +891,7 @@ char_u *replace_termcodes(const char_u *from, const size_t from_len, char_u **bu // (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14) if (end - src >= 4 && STRNICMP(src, "<SID>", 5) == 0) { if (current_sctx.sc_sid <= 0) { - EMSG(_(e_usingsid)); + emsg(_(e_usingsid)); } else { src += 5; result[dlen++] = K_SPECIAL; |