vim-patch:7.4.491

Problem:    When winrestview() has a negative "topline" value there are
	    display errors.
Solution:   Correct a negative value to 1. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-491
This commit is contained in:
Florian Walch 2014-12-23 14:15:31 +01:00
parent 12245f9f1f
commit 598f69b05e
2 changed files with 2 additions and 2 deletions

View File

@ -15278,7 +15278,7 @@ static void f_winrestview(typval_T *argvars, typval_T *rettv)
win_new_width(curwin, curwin->w_width);
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;

View File

@ -247,7 +247,7 @@ static int included_patches[] = {
494,
493,
//492,
//491,
491,
//490,
//489,
//488,