aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r--src/nvim/cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c
index 6c0a81838f..3d31061d4c 100644
--- a/src/nvim/cursor.c
+++ b/src/nvim/cursor.c
@@ -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;