mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 06:16:08 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1732,7 +1732,7 @@ void ins_compl_addleader(int c)
|
||||
|
||||
utf_char2bytes(c, (char *)buf);
|
||||
buf[cc] = NUL;
|
||||
ins_char_bytes((char_u *)buf, (size_t)cc);
|
||||
ins_char_bytes(buf, (size_t)cc);
|
||||
} else {
|
||||
ins_char(c);
|
||||
}
|
||||
@@ -2014,7 +2014,7 @@ static bool ins_compl_stop(const int c, const int prev_mode, bool retval)
|
||||
const int compl_len = get_compl_len();
|
||||
const int len = (int)STRLEN(p);
|
||||
if (len > compl_len) {
|
||||
ins_bytes_len(p + compl_len, (size_t)(len - compl_len));
|
||||
ins_bytes_len((char *)p + compl_len, (size_t)(len - compl_len));
|
||||
}
|
||||
}
|
||||
retval = true;
|
||||
|
Reference in New Issue
Block a user