diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-02-14 14:37:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 14:37:01 +0000 |
commit | 264fb6945baed20b1f1ef4302ccd8a41e37b088e (patch) | |
tree | ad5cbb452ceeeb0323d0b1a2687b9d2dee8e9107 /src/nvim/drawline.c | |
parent | 00c0a52f94184e49e342b1898831e1d8ee10c543 (diff) | |
parent | 60ab22dfa6c9888fe8e261f185bfe4b0ab72956e (diff) | |
download | rneovim-264fb6945baed20b1f1ef4302ccd8a41e37b088e.tar.gz rneovim-264fb6945baed20b1f1ef4302ccd8a41e37b088e.tar.bz2 rneovim-264fb6945baed20b1f1ef4302ccd8a41e37b088e.zip |
Merge pull request #22113 from luukvbaal/nrwidth
fix(column): no longer reset nrwidth_line_count for 'statuscolumn'
Diffstat (limited to 'src/nvim/drawline.c')
-rw-r--r-- | src/nvim/drawline.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index a74a5670d1..3cedb04bcb 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -415,14 +415,12 @@ static void get_statuscol_str(win_T *wp, linenr_T lnum, int virtnum, statuscol_T if (wp->w_statuscol_line_count != wp->w_nrwidth_line_count) { wp->w_statuscol_line_count = wp->w_nrwidth_line_count; set_vim_var_nr(VV_VIRTNUM, 0); - build_statuscol_str(wp, wp->w_nrwidth_line_count, 0, stcp->width, - ' ', stcp->text, &stcp->hlrec, stcp); + build_statuscol_str(wp, wp->w_nrwidth_line_count, 0, stcp); stcp->width += stcp->truncate; } set_vim_var_nr(VV_VIRTNUM, virtnum); - int width = build_statuscol_str(wp, lnum, relnum, stcp->width, - ' ', stcp->text, &stcp->hlrec, stcp); + int width = build_statuscol_str(wp, lnum, relnum, stcp); // Force a redraw in case of error or when truncated if (*wp->w_p_stc == NUL || (stcp->truncate > 0 && wp->w_nrwidth < MAX_NUMBERWIDTH)) { if (stcp->truncate) { // Avoid truncating 'statuscolumn' |