mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(extmarks): problems with folded virtual lines (#21930)
Problem: When a folded line has virtual lines attached, the following problems occur: - The virtual lines are drawn empty. - The 'foldtext' line is drawn empty. - The cursor is drawn incorrectly. Solution: Check whether virtual lines belong to a folded line. Fix #17027 Fix #19557 Fix #21837 Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -1906,7 +1906,7 @@ static void win_update(win_T *wp, DecorProviders *providers)
|
||||
if (j > 0 && !wp->w_botfill && row < wp->w_grid.rows) {
|
||||
// Display filler text below last line. win_line() will check
|
||||
// for ml_line_count+1 and only draw filler lines
|
||||
foldinfo_T info = FOLDINFO_INIT;
|
||||
foldinfo_T info = { 0 };
|
||||
row = win_line(wp, wp->w_botline, row, wp->w_grid.rows,
|
||||
false, false, info, &line_providers, &provider_err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user