aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-22 10:39:37 +0800
committerGitHub <noreply@github.com>2024-01-22 10:39:37 +0800
commite68decab0352d553bd2463842d96379f56073a1c (patch)
treee65bdbf1cbb6752ac097ce2339b691570ad7bc1d /src/nvim/getchar.c
parent8c6de9147cabbf99d18afbdbed2f11f30c1d0dfc (diff)
downloadrneovim-e68decab0352d553bd2463842d96379f56073a1c.tar.gz
rneovim-e68decab0352d553bd2463842d96379f56073a1c.tar.bz2
rneovim-e68decab0352d553bd2463842d96379f56073a1c.zip
refactor: use "csarg" for CharsizeArg variables (#27123)
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 6515cc84da..03bc953368 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -2507,15 +2507,15 @@ static int vgetorpeek(bool advance)
ptr = get_cursor_line_ptr();
char *endptr = ptr + curwin->w_cursor.col;
- CharsizeArg arg;
- CSType cstype = init_charsize_arg(&arg, curwin, curwin->w_cursor.lnum, ptr);
+ CharsizeArg csarg;
+ CSType cstype = init_charsize_arg(&csarg, curwin, curwin->w_cursor.lnum, ptr);
StrCharInfo ci = utf_ptr2StrCharInfo(ptr);
int vcol = 0;
while (ci.ptr < endptr) {
if (!ascii_iswhite(ci.chr.value)) {
curwin->w_wcol = vcol;
}
- vcol += win_charsize(cstype, vcol, ci.ptr, ci.chr.value, &arg).width;
+ vcol += win_charsize(cstype, vcol, ci.ptr, ci.chr.value, &csarg).width;
ci = utfc_next(ci);
}