|
Karsten Hopp |
2f625c |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2f625c |
Subject: Patch 7.4.368
|
|
Karsten Hopp |
2f625c |
Fcc: outbox
|
|
Karsten Hopp |
2f625c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2f625c |
Mime-Version: 1.0
|
|
Karsten Hopp |
2f625c |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2f625c |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2f625c |
------------
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
Patch 7.4.368
|
|
Karsten Hopp |
2f625c |
Problem: Restoring the window sizes after closing the command line window
|
|
Karsten Hopp |
2f625c |
doesn't work properly if there are nested splits.
|
|
Karsten Hopp |
2f625c |
Solution: Restore the sizes twice. (Hirohito Higashi)
|
|
Karsten Hopp |
2f625c |
Files: src/window.c
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
*** ../vim-7.4.367/src/window.c 2014-07-16 14:16:41.519771715 +0200
|
|
Karsten Hopp |
2f625c |
--- src/window.c 2014-07-16 15:13:52.895701974 +0200
|
|
Karsten Hopp |
2f625c |
***************
|
|
Karsten Hopp |
2f625c |
*** 4848,4862 ****
|
|
Karsten Hopp |
2f625c |
garray_T *gap;
|
|
Karsten Hopp |
2f625c |
{
|
|
Karsten Hopp |
2f625c |
win_T *wp;
|
|
Karsten Hopp |
2f625c |
! int i;
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
if (win_count() * 2 == gap->ga_len)
|
|
Karsten Hopp |
2f625c |
{
|
|
Karsten Hopp |
2f625c |
! i = 0;
|
|
Karsten Hopp |
2f625c |
! for (wp = firstwin; wp != NULL; wp = wp->w_next)
|
|
Karsten Hopp |
2f625c |
{
|
|
Karsten Hopp |
2f625c |
! frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
|
|
Karsten Hopp |
2f625c |
! win_setheight_win(((int *)gap->ga_data)[i++], wp);
|
|
Karsten Hopp |
2f625c |
}
|
|
Karsten Hopp |
2f625c |
/* recompute the window positions */
|
|
Karsten Hopp |
2f625c |
(void)win_comp_pos();
|
|
Karsten Hopp |
2f625c |
--- 4848,4867 ----
|
|
Karsten Hopp |
2f625c |
garray_T *gap;
|
|
Karsten Hopp |
2f625c |
{
|
|
Karsten Hopp |
2f625c |
win_T *wp;
|
|
Karsten Hopp |
2f625c |
! int i, j;
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
if (win_count() * 2 == gap->ga_len)
|
|
Karsten Hopp |
2f625c |
{
|
|
Karsten Hopp |
2f625c |
! /* The order matters, because frames contain other frames, but it's
|
|
Karsten Hopp |
2f625c |
! * difficult to get right. The easy way out is to do it twice. */
|
|
Karsten Hopp |
2f625c |
! for (j = 0; j < 2; ++j)
|
|
Karsten Hopp |
2f625c |
{
|
|
Karsten Hopp |
2f625c |
! i = 0;
|
|
Karsten Hopp |
2f625c |
! for (wp = firstwin; wp != NULL; wp = wp->w_next)
|
|
Karsten Hopp |
2f625c |
! {
|
|
Karsten Hopp |
2f625c |
! frame_setwidth(wp->w_frame, ((int *)gap->ga_data)[i++]);
|
|
Karsten Hopp |
2f625c |
! win_setheight_win(((int *)gap->ga_data)[i++], wp);
|
|
Karsten Hopp |
2f625c |
! }
|
|
Karsten Hopp |
2f625c |
}
|
|
Karsten Hopp |
2f625c |
/* recompute the window positions */
|
|
Karsten Hopp |
2f625c |
(void)win_comp_pos();
|
|
Karsten Hopp |
2f625c |
*** ../vim-7.4.367/src/version.c 2014-07-16 14:42:37.923740082 +0200
|
|
Karsten Hopp |
2f625c |
--- src/version.c 2014-07-16 15:14:46.035700894 +0200
|
|
Karsten Hopp |
2f625c |
***************
|
|
Karsten Hopp |
2f625c |
*** 736,737 ****
|
|
Karsten Hopp |
2f625c |
--- 736,739 ----
|
|
Karsten Hopp |
2f625c |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2f625c |
+ /**/
|
|
Karsten Hopp |
2f625c |
+ 368,
|
|
Karsten Hopp |
2f625c |
/**/
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
--
|
|
Karsten Hopp |
2f625c |
FROG: How you English say: I one more time, mac, I unclog my nose towards
|
|
Karsten Hopp |
2f625c |
you, sons of a window-dresser, so, you think you could out-clever us
|
|
Karsten Hopp |
2f625c |
French fellows with your silly knees-bent creeping about advancing
|
|
Karsten Hopp |
2f625c |
behaviour. (blows a raspberry) I wave my private parts at your aunties,
|
|
Karsten Hopp |
2f625c |
you brightly-coloured, mealy-templed, cranberry-smelling, electric
|
|
Karsten Hopp |
2f625c |
donkey-bottom biters.
|
|
Karsten Hopp |
2f625c |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
2f625c |
|
|
Karsten Hopp |
2f625c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2f625c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2f625c |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2f625c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|