diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-07 21:43:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 21:43:00 +0200 |
commit | 2d78e656b715119ca11d131a1a932f22f1b4ad36 (patch) | |
tree | 2cb91a5838a33174019389c2e8e5e537a04ad914 /src/nvim/getchar.c | |
parent | 04933b1ea968f958d2541dd65fd33ebb503caac3 (diff) | |
download | rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.gz rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.bz2 rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.zip |
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 9aed2630dd..69a371ccf9 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -2007,8 +2007,8 @@ static int handle_mapping(int *keylenp, const bool *timedout, int *mapdepth) // Don't allow mapping the first byte(s) of a multi-byte char. // Happens when mapping <M-a> and then changing 'encoding'. // Beware that 0x80 is escaped. - char *p1 = mp->m_keys; - char *p2 = (char *)mb_unescape((const char **)&p1); + const char *p1 = mp->m_keys; + const char *p2 = mb_unescape(&p1); if (p2 != NULL && MB_BYTE2LEN(tb_c1) > utfc_ptr2len(p2)) { mlen = 0; |