mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 11:56:30 +00:00
refactor: use "csarg" for CharsizeArg variables (#27123)
This commit is contained in:
@@ -141,12 +141,12 @@ static int coladvance2(pos_T *pos, bool addspaces, bool finetune, colnr_T wcol_a
|
||||
}
|
||||
}
|
||||
|
||||
CharsizeArg arg;
|
||||
CSType cstype = init_charsize_arg(&arg, curwin, pos->lnum, line);
|
||||
CharsizeArg csarg;
|
||||
CSType cstype = init_charsize_arg(&csarg, curwin, pos->lnum, line);
|
||||
StrCharInfo ci = utf_ptr2StrCharInfo(line);
|
||||
col = 0;
|
||||
while (col <= wcol && *ci.ptr != NUL) {
|
||||
CharSize cs = win_charsize(cstype, col, ci.ptr, ci.chr.value, &arg);
|
||||
CharSize cs = win_charsize(cstype, col, ci.ptr, ci.chr.value, &csarg);
|
||||
csize = cs.width;
|
||||
head = cs.head;
|
||||
col += cs.width;
|
||||
|
Reference in New Issue
Block a user