mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -2836,12 +2836,12 @@ static void append_command(char *cmd)
|
||||
}
|
||||
STRCAT(IObuff, ": ");
|
||||
d = (char *)IObuff + STRLEN(IObuff);
|
||||
while (*s != NUL && (char_u *)d - IObuff + 5 < IOSIZE) {
|
||||
while (*s != NUL && d - IObuff + 5 < IOSIZE) {
|
||||
if ((char_u)s[0] == 0xc2 && (char_u)s[1] == 0xa0) {
|
||||
s += 2;
|
||||
STRCPY(d, "<a0>");
|
||||
d += 4;
|
||||
} else if ((char_u *)d - IObuff + utfc_ptr2len(s) + 1 >= IOSIZE) {
|
||||
} else if (d - IObuff + utfc_ptr2len(s) + 1 >= IOSIZE) {
|
||||
break;
|
||||
} else {
|
||||
mb_copy_char((const char **)&s, &d);
|
||||
|
Reference in New Issue
Block a user