Lines Matching +defs:first +defs:line

14  * which are *between* characters, whereas vim uses line number
72 /* The first implementation (working only with Netbeans) returned "1.1". The
541 /* first, unlink the node */
642 /* Locate the first line in the first buffer. */
1153 * exited, only mention the first error until the connection works again. */
1296 * Unbackslashed dquote marks the end, if first char was dquote.
1328 * Remove from "first" byte to "last" byte (inclusive), at line "lnum" of the
1329 * current buffer. Remove to end of line when "last" is MAXCOL.
1332 nb_partialremove(linenr_T lnum, colnr_T first, colnr_T last)
1340 if (first >= (colnr_T)oldlen || oldlen == 0) /* just in case */
1344 newtext = alloc(oldlen - (int)(lastbyte - first));
1347 mch_memmove(newtext, oldtext, first);
1348 STRMOVE(newtext + first, oldtext + lastbyte + 1);
1355 * Replace the "first" line with the concatenation of the "first" and
1356 * the "other" line. The "other" line is not removed.
1359 nb_joinlines(linenr_T first, linenr_T other)
1364 len_first = (int)STRLEN(ml_get(first));
1369 mch_memmove(p, ml_get(first), len_first);
1371 ml_replace(first, p, FALSE);
1487 char_u *line;
1512 line = nb_quote(ml_get_buf(buf->bufp, lno, FALSE));
1513 if (line != NULL)
1515 STRCPY(p, line);
1516 p += STRLEN(line);
1519 vim_free(line);
1538 pos_T first, last;
1580 first = *pos;
1581 nbdebug((" FIRST POS: line %d, col %d\n",
1582 first.lnum, first.col));
1593 nbdebug((" LAST POS: line %d, col %d\n",
1595 del_from_lnum = first.lnum;
1599 /* Get the position of the first byte after the deleted
1604 /* Remove part of the first line. */
1605 if (first.col != 0
1606 || (next != NULL && first.lnum == next->lnum))
1608 if (first.lnum != last.lnum
1609 || (next != NULL && first.lnum != next->lnum))
1611 /* remove to the end of the first line */
1612 nb_partialremove(first.lnum, first.col,
1614 if (first.lnum == last.lnum)
1616 /* Partial line to remove includes the end of
1617 * line. Join the line with the next one, have
1618 * the next line deleted below. */
1619 nb_joinlines(first.lnum, next->lnum);
1625 /* remove within one line */
1626 nb_partialremove(first.lnum, first.col, last.col);
1628 ++del_from_lnum; /* don't delete the first line */
1631 /* Remove part of the last line. */
1632 if (first.lnum != last.lnum && next != NULL
1636 if (del_from_lnum > first.lnum)
1638 /* Join end of last line to start of first line; last
1639 * line is deleted below. */
1640 nb_joinlines(first.lnum, last.lnum);
1643 /* First line is deleted as a whole, keep the last
1644 * line. */
1648 /* First is partial line; last line to remove includes
1649 * the end of line; join first line to line following last
1650 * line; line following last line is deleted below. */
1651 if (first.lnum != last.lnum && del_from_lnum > first.lnum
1654 nb_joinlines(first.lnum, next->lnum);
1669 nbdebug((" Deleting sign %d on line %d\n",
1675 nbdebug((" No sign on line %d\n", i));
1686 /* Leave cursor at first deleted byte. */
1687 curwin->w_cursor = first;
1764 lnum_start = 1; /* above empty line */
1769 /* "lnum" is the line where we insert: either append to it or
1770 * insert a new line above it. */
1780 /* Incomplete line, probably truncated. Next "insert"
1809 /* Insert halfway a line. For simplicity we assume we
1810 * need to append to the line. */
1821 /* Append a new line. Not that we always do this,
1853 * XXX - GRP - Is the next line right? If I've inserted
2250 update_topline(); /* scroll to show the line */
2415 nbdebug((" partial line annotation -- Not Yet Implemented!\n"));
2425 coloncmd(":sign place %d line=%ld name=%d buffer=%d",
2464 pos_T first;
2494 first = *pos;
2501 * previous line as the end.
2514 first.lnum, first.col,
2517 for (lnum = first.lnum; lnum <= last.lnum; lnum++)
2529 ":sign place %d line=%ld name=%d buffer=%d",
3440 * u_savecommon(), these are the line above the change and the line below the
3525 * If the mouse is clicked in the gutter of a line with multiple
3571 * Apparently an annotation is defined the first time it is used in a buffer.
3626 /* no glyph, line highlighting only */
3634 /* glyph, line highlighting */
3639 /* glyph, no line highlighting */
3647 if (globalsignmaplen == 0) /* first allocation */
3677 if (buf->signmaplen == 0) /* first allocation */
3745 /* Correction for when last line doesn't have an EOL. */
3850 : _("[Incomplete last line]"));