aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/drawscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/drawscreen.c')
-rw-r--r--src/nvim/drawscreen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c
index a645dced40..c17bc2d999 100644
--- a/src/nvim/drawscreen.c
+++ b/src/nvim/drawscreen.c
@@ -2319,6 +2319,13 @@ static void win_update(win_T *wp)
wp->w_lines[idx].wl_lastlnum = lnum + foldinfo.fi_lines;
did_update = DID_FOLD;
}
+
+ // Adjust "wl_lastlnum" for concealed lines below the last line in the window.
+ while (row == wp->w_grid.rows
+ && decor_conceal_line(wp, wp->w_lines[idx].wl_lastlnum, false)) {
+ wp->w_lines[idx].wl_lastlnum++;
+ hasFolding(wp, wp->w_lines[idx].wl_lastlnum, NULL, &wp->w_lines[idx].wl_lastlnum);
+ }
}
wp->w_lines[idx].wl_lnum = lnum;