diff options
author | vimboss <devnull@localhost> | 2009-11-03 15:23:14 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2009-11-03 15:23:14 +0000 |
commit | 381bcff7f35a98160af0c712eff8c0788d5dfe29 (patch) | |
tree | 1877e51ad67076c74d849757841728e0a4f8613a | |
parent | 59f34ed1b90025e58ff211e969e6f64c6d289de8 (diff) | |
download | vim-7-2-277.tar.gz |
-rw-r--r-- | src/move.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -183,9 +183,6 @@ update_topline() if (curwin->w_topline != 1) redraw_later(NOT_VALID); curwin->w_topline = 1; -#ifdef FEAT_DIFF - curwin->w_topfill = 0; -#endif curwin->w_botline = 2; curwin->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP; #ifdef FEAT_SCROLLBIND @@ -1257,7 +1254,8 @@ scrolldown(line_count, byfold) while (line_count-- > 0) { #ifdef FEAT_DIFF - if (curwin->w_topfill < diff_check(curwin, curwin->w_topline)) + if (curwin->w_topfill < diff_check(curwin, curwin->w_topline) + && curwin->w_topfill < curwin->w_height - 1) { ++curwin->w_topfill; ++done; diff --git a/src/version.c b/src/version.c index 5888b2d3..ee69469f 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 277, +/**/ 276, /**/ 275, |