diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-09 14:52:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 14:52:05 +0800 |
commit | b2c92eebc01c15789b37c6f62bd71a6ccfd0155f (patch) | |
tree | 3e5bf66f28fb90e2688ed5539299f846f4f7396e | |
parent | ee3d4f6b90d0902aa17936d1f0944755516569a1 (diff) | |
download | rneovim-b2c92eebc01c15789b37c6f62bd71a6ccfd0155f.tar.gz rneovim-b2c92eebc01c15789b37c6f62bd71a6ccfd0155f.tar.bz2 rneovim-b2c92eebc01c15789b37c6f62bd71a6ccfd0155f.zip |
refactor(drawline): remove unused save_extra argument (#26959)
-rw-r--r-- | src/nvim/drawline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index 7ee7e1911f..6480c10c6b 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -206,7 +206,7 @@ static void margin_columns_win(win_T *wp, int *left_col, int *right_col) /// Handles composing chars static int line_putchar(buf_T *buf, const char **pp, schar_T *dest, int maxcells, int vcol) { - // Caller should handle overwriting the left half of a double-width char. + // Caller should handle overwriting the right half of a double-width char. assert(dest[0] != 0); const char *p = *pp; @@ -873,7 +873,7 @@ static colnr_T get_leadcol(win_T *wp, const char *ptr, const char *line) } /// Start a screen line at column zero. -static void win_line_start(win_T *wp, winlinevars_T *wlv, bool save_extra) +static void win_line_start(win_T *wp, winlinevars_T *wlv) { wlv->col = 0; wlv->off = 0; @@ -1456,7 +1456,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl ptr = line + v; // "line" may have been updated } - win_line_start(wp, &wlv, false); + win_line_start(wp, &wlv); bool draw_cols = true; int leftcols_width = 0; @@ -2848,7 +2848,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool number_onl break; } - win_line_start(wp, &wlv, true); + win_line_start(wp, &wlv); draw_cols = true; lcs_prec_todo = wp->w_p_lcs_chars.prec; |