Lines Matching refs:line1
56 static void foldMarkAdjustRecurse __ARGS((garray_T *gap, linenr_T line1, linenr_T line2, long amount, long amount_after));
1520 foldMarkAdjust(wp, line1, line2, amount, amount_after)
1522 linenr_T line1;
1527 /* If deleting marks from line1 to line2, but not deleting all those
1529 if (amount == MAXLNUM && line2 >= line1 && line2 - line1 >= -amount_after)
1530 line2 = line1 - amount_after - 1;
1534 --line1;
1535 foldMarkAdjustRecurse(&wp->w_folds, line1, line2, amount, amount_after);
1540 foldMarkAdjustRecurse(gap, line1, line2, amount, amount_after)
1542 linenr_T line1;
1555 top = line1 + 1;
1557 top = line1;
1559 /* Find the fold containing or just below "line1". */
1560 (void)foldFind(gap, line1, &fp);
1563 * Adjust all folds below "line1" that are affected.
1571 * line1 2 3 4 5
1581 /* 1. fold completely above line1: nothing to do */
1582 if (last < line1)
1612 foldMarkAdjustRecurse(&fp->fd_nested, line1 - fp->fd_top,
1616 /* 2. fold contains line1, line2 is below fold */
1618 fp->fd_len = line1 - fp->fd_top;
1624 /* 3. fold contains line1 and line2 */
1630 /* 5. fold is below line1 and contains line2; need to
1632 foldMarkAdjustRecurse(&fp->fd_nested, line1 - fp->fd_top,
1638 fp->fd_top = line1;