Skip to content

Commit

Permalink
updated for version 7.4.491
Browse files Browse the repository at this point in the history
Problem:    When winrestview() has a negative "topline" value there are
            display errors.
Solution:   Correct a negative value to 1. (Hirohito Higashi)
  • Loading branch information
brammool committed Oct 31, 2014
1 parent 6a64365 commit b851a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -19576,7 +19576,7 @@ f_winrestview(argvars, rettv)
# endif
changed_window_setting();

if (curwin->w_topline == 0)
if (curwin->w_topline <= 0)
curwin->w_topline = 1;
if (curwin->w_topline > curbuf->b_ml.ml_line_count)
curwin->w_topline = curbuf->b_ml.ml_line_count;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
491,
/**/
490,
/**/
Expand Down

0 comments on commit b851a96

Please sign in to comment.