|
Karsten Hopp |
2d4691 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2d4691 |
Subject: Patch 7.4.856
|
|
Karsten Hopp |
2d4691 |
Fcc: outbox
|
|
Karsten Hopp |
2d4691 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2d4691 |
Mime-Version: 1.0
|
|
Karsten Hopp |
2d4691 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2d4691 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2d4691 |
------------
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
Patch 7.4.856
|
|
Karsten Hopp |
2d4691 |
Problem: "zt" still doesn't work well with filler lines. (Gary Johnson)
|
|
Karsten Hopp |
2d4691 |
Solution: Check for filler lines above the cursor. (Christian Brabandt)
|
|
Karsten Hopp |
2d4691 |
Files: src/move.c
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
*** ../vim-7.4.855/src/move.c 2015-09-01 20:53:20.294030821 +0200
|
|
Karsten Hopp |
2d4691 |
--- src/move.c 2015-09-08 17:18:09.315751849 +0200
|
|
Karsten Hopp |
2d4691 |
***************
|
|
Karsten Hopp |
2d4691 |
*** 1751,1762 ****
|
|
Karsten Hopp |
2d4691 |
new_topline = top + 1;
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
2d4691 |
! /* used already contains the number of filler lines above, don't add it
|
|
Karsten Hopp |
2d4691 |
* again.
|
|
Karsten Hopp |
2d4691 |
! * TODO: if filler lines above new top are to be considered as context for
|
|
Karsten Hopp |
2d4691 |
! * the current window, leave next statement commented, else hide filler
|
|
Karsten Hopp |
2d4691 |
! * lines above cursor line, by adding them to extra */
|
|
Karsten Hopp |
2d4691 |
! /* extra += diff_check_fill(curwin, curwin->w_cursor.lnum); */
|
|
Karsten Hopp |
2d4691 |
#endif
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
/*
|
|
Karsten Hopp |
2d4691 |
--- 1751,1760 ----
|
|
Karsten Hopp |
2d4691 |
new_topline = top + 1;
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
2d4691 |
! /* "used" already contains the number of filler lines above, don't add it
|
|
Karsten Hopp |
2d4691 |
* again.
|
|
Karsten Hopp |
2d4691 |
! * Hide filler lines above cursor line by adding them to "extra". */
|
|
Karsten Hopp |
2d4691 |
! extra += diff_check_fill(curwin, curwin->w_cursor.lnum);
|
|
Karsten Hopp |
2d4691 |
#endif
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
/*
|
|
Karsten Hopp |
2d4691 |
***************
|
|
Karsten Hopp |
2d4691 |
*** 1771,1777 ****
|
|
Karsten Hopp |
2d4691 |
i = 1;
|
|
Karsten Hopp |
2d4691 |
else
|
|
Karsten Hopp |
2d4691 |
#endif
|
|
Karsten Hopp |
2d4691 |
! i = plines(top);
|
|
Karsten Hopp |
2d4691 |
used += i;
|
|
Karsten Hopp |
2d4691 |
if (extra + i <= off && bot < curbuf->b_ml.ml_line_count)
|
|
Karsten Hopp |
2d4691 |
{
|
|
Karsten Hopp |
2d4691 |
--- 1769,1775 ----
|
|
Karsten Hopp |
2d4691 |
i = 1;
|
|
Karsten Hopp |
2d4691 |
else
|
|
Karsten Hopp |
2d4691 |
#endif
|
|
Karsten Hopp |
2d4691 |
! i = plines_nofill(top);
|
|
Karsten Hopp |
2d4691 |
used += i;
|
|
Karsten Hopp |
2d4691 |
if (extra + i <= off && bot < curbuf->b_ml.ml_line_count)
|
|
Karsten Hopp |
2d4691 |
{
|
|
Karsten Hopp |
2d4691 |
*** ../vim-7.4.855/src/version.c 2015-09-08 16:31:01.673123014 +0200
|
|
Karsten Hopp |
2d4691 |
--- src/version.c 2015-09-08 17:15:18.005529911 +0200
|
|
Karsten Hopp |
2d4691 |
***************
|
|
Karsten Hopp |
2d4691 |
*** 743,744 ****
|
|
Karsten Hopp |
2d4691 |
--- 743,746 ----
|
|
Karsten Hopp |
2d4691 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2d4691 |
+ /**/
|
|
Karsten Hopp |
2d4691 |
+ 856,
|
|
Karsten Hopp |
2d4691 |
/**/
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
--
|
|
Karsten Hopp |
2d4691 |
I used to wonder about the meaning of life. But I looked it
|
|
Karsten Hopp |
2d4691 |
up in the dictionary under "L" and there it was - the meaning
|
|
Karsten Hopp |
2d4691 |
of life. It was less than I expected. - Dogbert
|
|
Karsten Hopp |
2d4691 |
|
|
Karsten Hopp |
2d4691 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2d4691 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2d4691 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2d4691 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|