|
Karsten Hopp |
37e630 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
37e630 |
Subject: Patch 7.4.309
|
|
Karsten Hopp |
37e630 |
Fcc: outbox
|
|
Karsten Hopp |
37e630 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
37e630 |
Mime-Version: 1.0
|
|
Karsten Hopp |
37e630 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
37e630 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
37e630 |
------------
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
Patch 7.4.309
|
|
Karsten Hopp |
37e630 |
Problem: When increasing the size of the lower window, the upper window
|
|
Karsten Hopp |
37e630 |
jumps back to the top. (Ron Aaron)
|
|
Karsten Hopp |
37e630 |
Solution: Change setting the topline. (Nobuhiro Takasaki)
|
|
Karsten Hopp |
37e630 |
Files: src/window.c
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
*** ../vim-7.4.308/src/window.c 2014-05-22 15:17:24.706440568 +0200
|
|
Karsten Hopp |
37e630 |
--- src/window.c 2014-05-28 13:24:40.308068558 +0200
|
|
Karsten Hopp |
37e630 |
***************
|
|
Karsten Hopp |
37e630 |
*** 5710,5717 ****
|
|
Karsten Hopp |
37e630 |
--wp->w_wrow;
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
! else
|
|
Karsten Hopp |
37e630 |
{
|
|
Karsten Hopp |
37e630 |
while (sline > 0 && lnum > 1)
|
|
Karsten Hopp |
37e630 |
{
|
|
Karsten Hopp |
37e630 |
--- 5710,5718 ----
|
|
Karsten Hopp |
37e630 |
--wp->w_wrow;
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
+ set_topline(wp, lnum);
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
! else if (sline > 0)
|
|
Karsten Hopp |
37e630 |
{
|
|
Karsten Hopp |
37e630 |
while (sline > 0 && lnum > 1)
|
|
Karsten Hopp |
37e630 |
{
|
|
Karsten Hopp |
37e630 |
***************
|
|
Karsten Hopp |
37e630 |
*** 5748,5761 ****
|
|
Karsten Hopp |
37e630 |
lnum++;
|
|
Karsten Hopp |
37e630 |
wp->w_wrow -= line_size + sline;
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
! else if (sline >= 0)
|
|
Karsten Hopp |
37e630 |
{
|
|
Karsten Hopp |
37e630 |
/* First line of file reached, use that as topline. */
|
|
Karsten Hopp |
37e630 |
lnum = 1;
|
|
Karsten Hopp |
37e630 |
wp->w_wrow -= sline;
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
- set_topline(wp, lnum);
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
if (wp == curwin)
|
|
Karsten Hopp |
37e630 |
--- 5749,5763 ----
|
|
Karsten Hopp |
37e630 |
lnum++;
|
|
Karsten Hopp |
37e630 |
wp->w_wrow -= line_size + sline;
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
! else if (sline > 0)
|
|
Karsten Hopp |
37e630 |
{
|
|
Karsten Hopp |
37e630 |
/* First line of file reached, use that as topline. */
|
|
Karsten Hopp |
37e630 |
lnum = 1;
|
|
Karsten Hopp |
37e630 |
wp->w_wrow -= sline;
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
+
|
|
Karsten Hopp |
37e630 |
+ set_topline(wp, lnum);
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
}
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
if (wp == curwin)
|
|
Karsten Hopp |
37e630 |
*** ../vim-7.4.308/src/version.c 2014-05-28 11:35:33.428011248 +0200
|
|
Karsten Hopp |
37e630 |
--- src/version.c 2014-05-28 13:33:54.244073407 +0200
|
|
Karsten Hopp |
37e630 |
***************
|
|
Karsten Hopp |
37e630 |
*** 736,737 ****
|
|
Karsten Hopp |
37e630 |
--- 736,739 ----
|
|
Karsten Hopp |
37e630 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
37e630 |
+ /**/
|
|
Karsten Hopp |
37e630 |
+ 309,
|
|
Karsten Hopp |
37e630 |
/**/
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
--
|
|
Karsten Hopp |
37e630 |
Don't be humble ... you're not that great.
|
|
Karsten Hopp |
37e630 |
-- Golda Meir
|
|
Karsten Hopp |
37e630 |
|
|
Karsten Hopp |
37e630 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
37e630 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
37e630 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
37e630 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|