aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/drawscreen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c
index c95f3f3550..fdf70a081c 100644
--- a/src/nvim/drawscreen.c
+++ b/src/nvim/drawscreen.c
@@ -1965,7 +1965,8 @@ win_update_start:
if (mid_end >= row) {
lastline = MIN(lastline, mid_start);
}
- if (mod_bot > buf->b_ml.ml_line_count + 1) {
+ // if (mod_bot > buf->b_ml.ml_line_count + 1) {
+ if (mod_bot > buf->b_ml.ml_line_count) {
lastline = 0;
}