Skip to content

Commit c284ff7

Browse files
committed
updated for version 7.4.130
Problem: Relative line numbers mix up windows when using folds. Solution: Use hasFoldingWin() instead of hasFolding(). (Lech Lorens)
1 parent 0cd032d commit c284ff7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/misc2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ get_cursor_rel_lnum(wp, lnum)
487487
{
488488
while (lnum > cursor)
489489
{
490-
(void)hasFolding(lnum, &lnum, NULL);
490+
(void)hasFoldingWin(wp, lnum, &lnum, NULL, TRUE, NULL);
491491
/* if lnum and cursor are in the same fold,
492492
* now lnum <= cursor */
493493
if (lnum > cursor)
@@ -499,7 +499,7 @@ get_cursor_rel_lnum(wp, lnum)
499499
{
500500
while (lnum < cursor)
501501
{
502-
(void)hasFolding(lnum, NULL, &lnum);
502+
(void)hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL);
503503
/* if lnum and cursor are in the same fold,
504504
* now lnum >= cursor */
505505
if (lnum < cursor)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
130,
741743
/**/
742744
129,
743745
/**/

0 commit comments

Comments
 (0)