|
Karsten Hopp |
d46efc |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
d46efc |
Subject: Patch 7.3.608
|
|
Karsten Hopp |
d46efc |
Fcc: outbox
|
|
Karsten Hopp |
d46efc |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
d46efc |
Mime-Version: 1.0
|
|
Karsten Hopp |
d46efc |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
d46efc |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
d46efc |
------------
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
Patch 7.3.608
|
|
Karsten Hopp |
d46efc |
Problem: winrestview() does not always restore the view correctly.
|
|
Karsten Hopp |
d46efc |
Solution: Call win_new_height() and win_new_width(). (Lech Lorens)
|
|
Karsten Hopp |
d46efc |
Files: src/eval.c, src/proto/window.pro, src/window.c
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
*** ../vim-7.3.607/src/eval.c 2012-07-16 19:27:25.000000000 +0200
|
|
Karsten Hopp |
d46efc |
--- src/eval.c 2012-07-19 17:50:16.000000000 +0200
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 18601,18606 ****
|
|
Karsten Hopp |
d46efc |
--- 18601,18610 ----
|
|
Karsten Hopp |
d46efc |
curwin->w_skipcol = get_dict_number(dict, (char_u *)"skipcol");
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
check_cursor();
|
|
Karsten Hopp |
d46efc |
+ win_new_height(curwin, curwin->w_height);
|
|
Karsten Hopp |
d46efc |
+ # ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
d46efc |
+ win_new_width(curwin, W_WIDTH(curwin));
|
|
Karsten Hopp |
d46efc |
+ # endif
|
|
Karsten Hopp |
d46efc |
changed_window_setting();
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
if (curwin->w_topline == 0)
|
|
Karsten Hopp |
d46efc |
*** ../vim-7.3.607/src/proto/window.pro 2012-06-13 14:28:16.000000000 +0200
|
|
Karsten Hopp |
d46efc |
--- src/proto/window.pro 2012-07-19 18:05:10.000000000 +0200
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 51,56 ****
|
|
Karsten Hopp |
d46efc |
--- 51,58 ----
|
|
Karsten Hopp |
d46efc |
void win_setminheight __ARGS((void));
|
|
Karsten Hopp |
d46efc |
void win_drag_status_line __ARGS((win_T *dragwin, int offset));
|
|
Karsten Hopp |
d46efc |
void win_drag_vsep_line __ARGS((win_T *dragwin, int offset));
|
|
Karsten Hopp |
d46efc |
+ void win_new_height __ARGS((win_T *wp, int height));
|
|
Karsten Hopp |
d46efc |
+ void win_new_width __ARGS((win_T *wp, int width));
|
|
Karsten Hopp |
d46efc |
void win_comp_scroll __ARGS((win_T *wp));
|
|
Karsten Hopp |
d46efc |
void command_height __ARGS((void));
|
|
Karsten Hopp |
d46efc |
void last_status __ARGS((int morewin));
|
|
Karsten Hopp |
d46efc |
*** ../vim-7.3.607/src/window.c 2012-07-16 17:31:48.000000000 +0200
|
|
Karsten Hopp |
d46efc |
--- src/window.c 2012-07-19 18:05:18.000000000 +0200
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 54,60 ****
|
|
Karsten Hopp |
d46efc |
static void frame_insert __ARGS((frame_T *before, frame_T *frp));
|
|
Karsten Hopp |
d46efc |
static void frame_remove __ARGS((frame_T *frp));
|
|
Karsten Hopp |
d46efc |
#ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
d46efc |
- static void win_new_width __ARGS((win_T *wp, int width));
|
|
Karsten Hopp |
d46efc |
static void win_goto_ver __ARGS((int up, long count));
|
|
Karsten Hopp |
d46efc |
static void win_goto_hor __ARGS((int left, long count));
|
|
Karsten Hopp |
d46efc |
#endif
|
|
Karsten Hopp |
d46efc |
--- 54,59 ----
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 71,77 ****
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
static win_T *win_alloc __ARGS((win_T *after, int hidden));
|
|
Karsten Hopp |
d46efc |
static void set_fraction __ARGS((win_T *wp));
|
|
Karsten Hopp |
d46efc |
- static void win_new_height __ARGS((win_T *wp, int height));
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
#define URL_SLASH 1 /* path_is_url() has found "://" */
|
|
Karsten Hopp |
d46efc |
#define URL_BACKSLASH 2 /* path_is_url() has found ":\\" */
|
|
Karsten Hopp |
d46efc |
--- 70,75 ----
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 5557,5563 ****
|
|
Karsten Hopp |
d46efc |
* This takes care of the things inside the window, not what happens to the
|
|
Karsten Hopp |
d46efc |
* window position, the frame or to other windows.
|
|
Karsten Hopp |
d46efc |
*/
|
|
Karsten Hopp |
d46efc |
! static void
|
|
Karsten Hopp |
d46efc |
win_new_height(wp, height)
|
|
Karsten Hopp |
d46efc |
win_T *wp;
|
|
Karsten Hopp |
d46efc |
int height;
|
|
Karsten Hopp |
d46efc |
--- 5555,5561 ----
|
|
Karsten Hopp |
d46efc |
* This takes care of the things inside the window, not what happens to the
|
|
Karsten Hopp |
d46efc |
* window position, the frame or to other windows.
|
|
Karsten Hopp |
d46efc |
*/
|
|
Karsten Hopp |
d46efc |
! void
|
|
Karsten Hopp |
d46efc |
win_new_height(wp, height)
|
|
Karsten Hopp |
d46efc |
win_T *wp;
|
|
Karsten Hopp |
d46efc |
int height;
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 5697,5703 ****
|
|
Karsten Hopp |
d46efc |
/*
|
|
Karsten Hopp |
d46efc |
* Set the width of a window.
|
|
Karsten Hopp |
d46efc |
*/
|
|
Karsten Hopp |
d46efc |
! static void
|
|
Karsten Hopp |
d46efc |
win_new_width(wp, width)
|
|
Karsten Hopp |
d46efc |
win_T *wp;
|
|
Karsten Hopp |
d46efc |
int width;
|
|
Karsten Hopp |
d46efc |
--- 5695,5701 ----
|
|
Karsten Hopp |
d46efc |
/*
|
|
Karsten Hopp |
d46efc |
* Set the width of a window.
|
|
Karsten Hopp |
d46efc |
*/
|
|
Karsten Hopp |
d46efc |
! void
|
|
Karsten Hopp |
d46efc |
win_new_width(wp, width)
|
|
Karsten Hopp |
d46efc |
win_T *wp;
|
|
Karsten Hopp |
d46efc |
int width;
|
|
Karsten Hopp |
d46efc |
*** ../vim-7.3.607/src/version.c 2012-07-19 17:39:01.000000000 +0200
|
|
Karsten Hopp |
d46efc |
--- src/version.c 2012-07-19 17:53:37.000000000 +0200
|
|
Karsten Hopp |
d46efc |
***************
|
|
Karsten Hopp |
d46efc |
*** 716,717 ****
|
|
Karsten Hopp |
d46efc |
--- 716,719 ----
|
|
Karsten Hopp |
d46efc |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
d46efc |
+ /**/
|
|
Karsten Hopp |
d46efc |
+ 608,
|
|
Karsten Hopp |
d46efc |
/**/
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
--
|
|
Karsten Hopp |
d46efc |
Although the scythe isn't pre-eminent among the weapons of war, anyone who
|
|
Karsten Hopp |
d46efc |
has been on the wrong end of, say, a peasants' revolt will know that in
|
|
Karsten Hopp |
d46efc |
skilled hands it is fearsome.
|
|
Karsten Hopp |
d46efc |
-- (Terry Pratchett, Mort)
|
|
Karsten Hopp |
d46efc |
|
|
Karsten Hopp |
d46efc |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
d46efc |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
d46efc |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
d46efc |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|