mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.491
Problem: When winrestview() has a negative "topline" value there are display errors. Solution: Correct a negative value to 1. (Hirohito Higashi)
This commit is contained in:
@@ -19576,7 +19576,7 @@ f_winrestview(argvars, rettv)
|
|||||||
# endif
|
# endif
|
||||||
changed_window_setting();
|
changed_window_setting();
|
||||||
|
|
||||||
if (curwin->w_topline == 0)
|
if (curwin->w_topline <= 0)
|
||||||
curwin->w_topline = 1;
|
curwin->w_topline = 1;
|
||||||
if (curwin->w_topline > curbuf->b_ml.ml_line_count)
|
if (curwin->w_topline > curbuf->b_ml.ml_line_count)
|
||||||
curwin->w_topline = curbuf->b_ml.ml_line_count;
|
curwin->w_topline = curbuf->b_ml.ml_line_count;
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
491,
|
||||||
/**/
|
/**/
|
||||||
490,
|
490,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user