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/plines.h | |
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/plines.h')
-rw-r--r-- | src/nvim/plines.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/plines.h b/src/nvim/plines.h index 4611101041..a4c5ced15a 100644 --- a/src/nvim/plines.h +++ b/src/nvim/plines.h @@ -42,7 +42,7 @@ typedef struct { #endif static inline CharSize win_charsize(CSType cstype, int vcol, char *ptr, int32_t chr, - CharsizeArg *arg) + CharsizeArg *csarg) REAL_FATTR_NONNULL_ALL REAL_FATTR_WARN_UNUSED_RESULT REAL_FATTR_ALWAYS_INLINE; /// Get the number of cells taken up on the screen by the given character at vcol. @@ -54,12 +54,12 @@ static inline CharSize win_charsize(CSType cstype, int vcol, char *ptr, int32_t /// When "arg->max_head_vcol" is negative, only count in "head" the size /// of 'showbreak'/'breakindent' before where cursor should be placed. static inline CharSize win_charsize(CSType cstype, int vcol, char *ptr, int32_t chr, - CharsizeArg *arg) + CharsizeArg *csarg) { if (cstype == kCharsizeFast) { - return charsize_fast(arg, vcol, chr); + return charsize_fast(csarg, vcol, chr); } else { - return charsize_regular(arg, ptr, vcol, chr); + return charsize_regular(csarg, ptr, vcol, chr); } } @@ -89,11 +89,11 @@ static inline int win_linetabsize(win_T *wp, linenr_T lnum, char *line, colnr_T /// @return Number of characters the string will take on the screen. static inline int win_linetabsize(win_T *wp, linenr_T lnum, char *line, colnr_T len) { - CharsizeArg arg; - CSType const cstype = init_charsize_arg(&arg, wp, lnum, line); + CharsizeArg csarg; + CSType const cstype = init_charsize_arg(&csarg, wp, lnum, line); if (cstype == kCharsizeFast) { - return linesize_fast(&arg, 0, len); + return linesize_fast(&csarg, 0, len); } else { - return linesize_regular(&arg, 0, len); + return linesize_regular(&csarg, 0, len); } } |