mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor: replace char_u with char 4 (#19987)
* refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -653,9 +653,9 @@ void ins_char_bytes(char *buf, size_t charlen)
|
||||
// cells. May result in adding spaces to fill a gap.
|
||||
colnr_T vcol;
|
||||
getvcol(curwin, &curwin->w_cursor, NULL, &vcol, NULL);
|
||||
colnr_T new_vcol = vcol + win_chartabsize(curwin, (char *)buf, vcol);
|
||||
colnr_T new_vcol = vcol + win_chartabsize(curwin, buf, vcol);
|
||||
while (oldp[col + oldlen] != NUL && vcol < new_vcol) {
|
||||
vcol += win_chartabsize(curwin, (char *)oldp + col + oldlen, vcol);
|
||||
vcol += win_chartabsize(curwin, oldp + col + oldlen, vcol);
|
||||
// Don't need to remove a TAB that takes us to the right
|
||||
// position.
|
||||
if (vcol > new_vcol && oldp[col + oldlen] == TAB) {
|
||||
|
Reference in New Issue
Block a user