diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-02 18:29:42 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-02 18:50:16 +0300 |
commit | 6140396d97d700ab6390b4ecfc4fd7da0ebdfd9f (patch) | |
tree | e4b0e7ddabfea533f62e258bb40e90150b6adde9 /src/nvim/getchar.c | |
parent | 832c158a663c7acb03a47fbd1e380ab7f835a9cd (diff) | |
download | rneovim-6140396d97d700ab6390b4ecfc4fd7da0ebdfd9f.tar.gz rneovim-6140396d97d700ab6390b4ecfc4fd7da0ebdfd9f.tar.bz2 rneovim-6140396d97d700ab6390b4ecfc4fd7da0ebdfd9f.zip |
*: Adjust usages of modified functions
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 4e42042959..1d1af69c94 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1806,7 +1806,7 @@ static int vgetorpeek(int advance) * <M-a> and then changing 'encoding'. Beware * that 0x80 is escaped. */ char_u *p1 = mp->m_keys; - char_u *p2 = mb_unescape(&p1); + char_u *p2 = (char_u *)mb_unescape((const char **)&p1); if (has_mbyte && p2 != NULL && MB_BYTE2LEN(c1) > MB_PTR2LEN(p2)) mlen = 0; @@ -4000,11 +4000,9 @@ int put_escstr(FILE *fd, char_u *strstart, int what) } for (; *str != NUL; ++str) { - char_u *p; - - /* Check for a multi-byte character, which may contain escaped - * K_SPECIAL and CSI bytes */ - p = mb_unescape(&str); + // Check for a multi-byte character, which may contain escaped + // K_SPECIAL and CSI bytes. + const char *p = mb_unescape((const char **)&str); if (p != NULL) { while (*p != NUL) if (fputc(*p++, fd) < 0) |