mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
*: Adjust usages of modified functions
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user