aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mouse.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/mouse.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/mouse.c')
-rw-r--r--src/nvim/mouse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c
index 86de182aee..fe59ceb82a 100644
--- a/src/nvim/mouse.c
+++ b/src/nvim/mouse.c
@@ -1755,12 +1755,12 @@ colnr_T vcol2col(win_T *wp, linenr_T lnum, colnr_T vcol, colnr_T *coladdp)
{
// try to advance to the specified column
char *line = ml_get_buf(wp->w_buffer, lnum);
- CharsizeArg arg;
- CSType cstype = init_charsize_arg(&arg, wp, lnum, line);
+ CharsizeArg csarg;
+ CSType cstype = init_charsize_arg(&csarg, wp, lnum, line);
StrCharInfo ci = utf_ptr2StrCharInfo(line);
int cur_vcol = 0;
while (cur_vcol < vcol && *ci.ptr != NUL) {
- int next_vcol = cur_vcol + win_charsize(cstype, cur_vcol, ci.ptr, ci.chr.value, &arg).width;
+ int next_vcol = cur_vcol + win_charsize(cstype, cur_vcol, ci.ptr, ci.chr.value, &csarg).width;
if (next_vcol > vcol) {
break;
}