|
Karsten Hopp |
96752f |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
96752f |
Subject: Patch 7.4.130
|
|
Karsten Hopp |
96752f |
Fcc: outbox
|
|
Karsten Hopp |
96752f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
96752f |
Mime-Version: 1.0
|
|
Karsten Hopp |
96752f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
96752f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
96752f |
------------
|
|
Karsten Hopp |
96752f |
|
|
Karsten Hopp |
96752f |
Patch 7.4.130
|
|
Karsten Hopp |
96752f |
Problem: Relative line numbers mix up windows when using folds.
|
|
Karsten Hopp |
96752f |
Solution: Use hasFoldingWin() instead of hasFolding(). (Lech Lorens)
|
|
Karsten Hopp |
96752f |
Files: src/misc2.c
|
|
Karsten Hopp |
96752f |
|
|
Karsten Hopp |
96752f |
|
|
Karsten Hopp |
96752f |
*** ../vim-7.4.129/src/misc2.c 2013-09-08 16:07:03.000000000 +0200
|
|
Karsten Hopp |
96752f |
--- src/misc2.c 2013-12-14 12:43:35.000000000 +0100
|
|
Karsten Hopp |
96752f |
***************
|
|
Karsten Hopp |
96752f |
*** 487,493 ****
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
while (lnum > cursor)
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
! (void)hasFolding(lnum, &lnum, NULL);
|
|
Karsten Hopp |
96752f |
/* if lnum and cursor are in the same fold,
|
|
Karsten Hopp |
96752f |
* now lnum <= cursor */
|
|
Karsten Hopp |
96752f |
if (lnum > cursor)
|
|
Karsten Hopp |
96752f |
--- 487,493 ----
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
while (lnum > cursor)
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
! (void)hasFoldingWin(wp, lnum, &lnum, NULL, TRUE, NULL);
|
|
Karsten Hopp |
96752f |
/* if lnum and cursor are in the same fold,
|
|
Karsten Hopp |
96752f |
* now lnum <= cursor */
|
|
Karsten Hopp |
96752f |
if (lnum > cursor)
|
|
Karsten Hopp |
96752f |
***************
|
|
Karsten Hopp |
96752f |
*** 499,505 ****
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
while (lnum < cursor)
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
! (void)hasFolding(lnum, NULL, &lnum);
|
|
Karsten Hopp |
96752f |
/* if lnum and cursor are in the same fold,
|
|
Karsten Hopp |
96752f |
* now lnum >= cursor */
|
|
Karsten Hopp |
96752f |
if (lnum < cursor)
|
|
Karsten Hopp |
96752f |
--- 499,505 ----
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
while (lnum < cursor)
|
|
Karsten Hopp |
96752f |
{
|
|
Karsten Hopp |
96752f |
! (void)hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL);
|
|
Karsten Hopp |
96752f |
/* if lnum and cursor are in the same fold,
|
|
Karsten Hopp |
96752f |
* now lnum >= cursor */
|
|
Karsten Hopp |
96752f |
if (lnum < cursor)
|
|
Karsten Hopp |
96752f |
*** ../vim-7.4.129/src/version.c 2013-12-14 12:17:34.000000000 +0100
|
|
Karsten Hopp |
96752f |
--- src/version.c 2013-12-14 12:44:27.000000000 +0100
|
|
Karsten Hopp |
96752f |
***************
|
|
Karsten Hopp |
96752f |
*** 740,741 ****
|
|
Karsten Hopp |
96752f |
--- 740,743 ----
|
|
Karsten Hopp |
96752f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
96752f |
+ /**/
|
|
Karsten Hopp |
96752f |
+ 130,
|
|
Karsten Hopp |
96752f |
/**/
|
|
Karsten Hopp |
96752f |
|
|
Karsten Hopp |
96752f |
--
|
|
Karsten Hopp |
96752f |
Over the years, I've developed my sense of deja vu so acutely that now
|
|
Karsten Hopp |
96752f |
I can remember things that *have* happened before ...
|
|
Karsten Hopp |
96752f |
|
|
Karsten Hopp |
96752f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
96752f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
96752f |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
96752f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|