diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-22 10:39:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 10:39:37 +0800 |
commit | e68decab0352d553bd2463842d96379f56073a1c (patch) | |
tree | e65bdbf1cbb6752ac097ce2339b691570ad7bc1d /src/nvim/cursor.c | |
parent | 8c6de9147cabbf99d18afbdbed2f11f30c1d0dfc (diff) | |
download | rneovim-e68decab0352d553bd2463842d96379f56073a1c.tar.gz rneovim-e68decab0352d553bd2463842d96379f56073a1c.tar.bz2 rneovim-e68decab0352d553bd2463842d96379f56073a1c.zip |
refactor: use "csarg" for CharsizeArg variables (#27123)
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r-- | src/nvim/cursor.c | 6 |
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; |