summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-07-19 18:05:44 +0200
committerBram Moolenaar <Bram@vim.org>2012-07-19 18:05:44 +0200
commit6763c140d656703814d9a268c8492762aee69469 (patch)
tree4b3057d4acf252fe2ffc054a49e62ceaf49f1ff0 /src/window.c
parent049d8e79cf49a38c1243f4ec33e48a9bd89b5e4c (diff)
downloadvim-git-6763c140d656703814d9a268c8492762aee69469.tar.gz
updated for version 7.3.608v7.3.608
Problem: winrestview() does not always restore the view correctly. Solution: Call win_new_height() and win_new_width(). (Lech Lorens)
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index c0b7b8b91..e1dc94039 100644
--- a/src/window.c
+++ b/src/window.c
@@ -54,7 +54,6 @@ static void frame_append __ARGS((frame_T *after, frame_T *frp));
static void frame_insert __ARGS((frame_T *before, frame_T *frp));
static void frame_remove __ARGS((frame_T *frp));
#ifdef FEAT_VERTSPLIT
-static void win_new_width __ARGS((win_T *wp, int width));
static void win_goto_ver __ARGS((int up, long count));
static void win_goto_hor __ARGS((int left, long count));
#endif
@@ -71,7 +70,6 @@ static win_T *restore_snapshot_rec __ARGS((frame_T *sn, frame_T *fr));
static win_T *win_alloc __ARGS((win_T *after, int hidden));
static void set_fraction __ARGS((win_T *wp));
-static void win_new_height __ARGS((win_T *wp, int height));
#define URL_SLASH 1 /* path_is_url() has found "://" */
#define URL_BACKSLASH 2 /* path_is_url() has found ":\\" */
@@ -5557,7 +5555,7 @@ set_fraction(wp)
* This takes care of the things inside the window, not what happens to the
* window position, the frame or to other windows.
*/
- static void
+ void
win_new_height(wp, height)
win_T *wp;
int height;
@@ -5697,7 +5695,7 @@ win_new_height(wp, height)
/*
* Set the width of a window.
*/
- static void
+ void
win_new_width(wp, width)
win_T *wp;
int width;