Merge pull request #22968 from luukvbaal/evalstc

fix(api): update "w_scwidth" in nvim_eval_statusline()
This commit is contained in:
bfredl 2023-04-14 15:12:48 +02:00 committed by GitHub
commit 002b80cb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2173,6 +2173,7 @@ Dictionary nvim_eval_statusline(String str, Dict(eval_statusline) *opts, Error *
linenr_T lnum = statuscol_lnum;
int num_signs = buf_get_signattrs(wp->w_buffer, lnum, sattrs, &num, &line, &cul);
decor_redraw_signs(wp->w_buffer, lnum - 1, &num_signs, sattrs, &num, &line, &cul);
wp->w_scwidth = win_signcol_count(wp);
statuscol.sattrs = sattrs;
statuscol.foldinfo = fold_info(wp, lnum);