diff options
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/move.c b/src/move.c index 0c37aa0d22..d1eb0257c6 100644 --- a/src/move.c +++ b/src/move.c @@ -1551,7 +1551,12 @@ scrollup_clamp() --curwin->w_topfill; else #endif + { +#ifdef FEAT_FOLDING + (void)hasFolding(curwin->w_topline, NULL, &curwin->w_topline); +#endif ++curwin->w_topline; + } ++curwin->w_botline; /* approximate w_botline */ curwin->w_valid &= ~(VALID_WROW|VALID_CROW|VALID_BOTLINE); } |