1
0
forked from aniani/vim

updated for version 7.2-261

This commit is contained in:
Bram Moolenaar
2009-09-18 13:17:09 +00:00
parent 2db24dc29b
commit 194b94c5a8
2 changed files with 10 additions and 4 deletions

View File

@@ -1607,11 +1607,11 @@ foldMarkAdjustRecurse(gap, line1, line2, amount, amount_after)
} }
else else
{ {
/* 2, 3, or 5: need to correct nested folds too */
foldMarkAdjustRecurse(&fp->fd_nested, line1 - fp->fd_top,
line2 - fp->fd_top, amount, amount_after);
if (fp->fd_top < top) if (fp->fd_top < top)
{ {
/* 2 or 3: need to correct nested folds too */
foldMarkAdjustRecurse(&fp->fd_nested, line1 - fp->fd_top,
line2 - fp->fd_top, amount, amount_after);
if (last <= line2) if (last <= line2)
{ {
/* 2. fold contains line1, line2 is below fold */ /* 2. fold contains line1, line2 is below fold */
@@ -1628,7 +1628,11 @@ foldMarkAdjustRecurse(gap, line1, line2, amount, amount_after)
} }
else else
{ {
/* 5. fold is below line1 and contains line2 */ /* 5. fold is below line1 and contains line2; need to
* correct nested folds too */
foldMarkAdjustRecurse(&fp->fd_nested, line1 - fp->fd_top,
line2 - fp->fd_top, amount,
amount_after + (fp->fd_top - top));
if (amount == MAXLNUM) if (amount == MAXLNUM)
{ {
fp->fd_len -= line2 - fp->fd_top + 1; fp->fd_len -= line2 - fp->fd_top + 1;

View File

@@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
261,
/**/ /**/
260, 260,
/**/ /**/