neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit b2c92eebc01c15789b37c6f62bd71a6ccfd0155f
parent ee3d4f6b90d0902aa17936d1f0944755516569a1
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue,  9 Jan 2024 14:52:05 +0800

refactor(drawline): remove unused save_extra argument (#26959)


Diffstat:
Msrc/nvim/drawline.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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;