mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
12245f9f1f
commit
598f69b05e
@ -15278,7 +15278,7 @@ static void f_winrestview(typval_T *argvars, typval_T *rettv)
|
|||||||
win_new_width(curwin, curwin->w_width);
|
win_new_width(curwin, curwin->w_width);
|
||||||
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;
|
||||||
|
@ -247,7 +247,7 @@ static int included_patches[] = {
|
|||||||
494,
|
494,
|
||||||
493,
|
493,
|
||||||
//492,
|
//492,
|
||||||
//491,
|
491,
|
||||||
//490,
|
//490,
|
||||||
//489,
|
//489,
|
||||||
//488,
|
//488,
|
||||||
|
Loading…
Reference in New Issue
Block a user