0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.3.608

Problem:    winrestview() does not always restore the view correctly.
Solution:   Call win_new_height() and win_new_width(). (Lech Lorens)
This commit is contained in:
Bram Moolenaar
2012-07-19 18:05:44 +02:00
parent 049d8e79cf
commit 6763c140d6
4 changed files with 10 additions and 4 deletions

View File

@@ -18601,6 +18601,10 @@ f_winrestview(argvars, rettv)
curwin->w_skipcol = get_dict_number(dict, (char_u *)"skipcol");
check_cursor();
win_new_height(curwin, curwin->w_height);
# ifdef FEAT_VERTSPLIT
win_new_width(curwin, W_WIDTH(curwin));
# endif
changed_window_setting();
if (curwin->w_topline == 0)