Lines Matching defs:ncursor
703 int ncursor;
806 if ((ncursor = domove(argcnt, &cmd[1], 1)) < 0)
811 while (isspace((unsigned char)es->cbuf[--ncursor]))
813 ncursor++;
815 if (ncursor > es->cursor) {
817 c2 = ncursor;
819 c1 = ncursor;
1161 int UNINITIALIZED(ncursor);
1168 ncursor = backword(argcnt);
1174 ncursor = Backword(argcnt);
1180 ncursor = endword(argcnt);
1181 if (sub && ncursor < es->linelen)
1182 ncursor++;
1188 ncursor = Endword(argcnt);
1189 if (sub && ncursor < es->linelen)
1190 ncursor++;
1209 if ((ncursor = findch(fsavech, argcnt, t, i)) < 0)
1212 ncursor++;
1219 ncursor = es->cursor - argcnt;
1220 if (ncursor < 0)
1221 ncursor = 0;
1229 ncursor = es->cursor + argcnt;
1230 if (ncursor > es->linelen)
1231 ncursor = es->linelen;
1238 ncursor = forwword(argcnt);
1244 ncursor = Forwword(argcnt);
1248 ncursor = 0;
1252 ncursor = 0;
1253 while (ncursor < es->linelen - 1 && isspace((unsigned char)es->cbuf[ncursor]))
1254 ncursor++;
1258 ncursor = argcnt;
1259 if (ncursor > es->linelen)
1260 ncursor = es->linelen;
1261 if (ncursor)
1262 ncursor--;
1267 ncursor = es->linelen;
1269 ncursor = 0;
1273 ncursor = es->cursor;
1274 while (ncursor < es->linelen &&
1275 (i = bracktype(es->cbuf[ncursor])) == 0)
1276 ncursor++;
1277 if (ncursor == es->linelen)
1282 if (++ncursor >= es->linelen)
1285 if (--ncursor < 0)
1288 t = bracktype(es->cbuf[ncursor]);
1295 ncursor++;
1301 return ncursor;
1517 int ncursor;
1521 ncursor = es->cursor;
1525 if (++ncursor == es->linelen)
1528 if (--ncursor < 0)
1531 } while (es->cbuf[ncursor] != ch);
1535 ncursor--;
1537 ncursor++;
1539 return ncursor;
1546 int ncursor;
1548 ncursor = es->cursor;
1549 while (ncursor < es->linelen && argcnt--) {
1550 if (is_wordch(es->cbuf[ncursor]))
1551 while (ncursor < es->linelen &&
1552 is_wordch(es->cbuf[ncursor]))
1553 ncursor++;
1554 else if (!isspace((unsigned char)es->cbuf[ncursor]))
1555 while (ncursor < es->linelen &&
1556 !is_wordch(es->cbuf[ncursor]) &&
1557 !isspace((unsigned char)es->cbuf[ncursor]))
1558 ncursor++;
1559 while (ncursor < es->linelen &&
1560 isspace((unsigned char)es->cbuf[ncursor]))
1561 ncursor++;
1563 return ncursor;
1570 int ncursor;
1572 ncursor = es->cursor;
1573 while (ncursor > 0 && argcnt--) {
1574 while (--ncursor > 0 && isspace((unsigned char)es->cbuf[ncursor]))
1576 if (ncursor > 0) {
1577 if (is_wordch(es->cbuf[ncursor]))
1578 while (--ncursor >= 0 &&
1579 is_wordch(es->cbuf[ncursor]))
1582 while (--ncursor >= 0 &&
1583 !is_wordch(es->cbuf[ncursor]) &&
1584 !isspace((unsigned char)es->cbuf[ncursor]))
1586 ncursor++;
1589 return ncursor;
1596 int ncursor;
1598 ncursor = es->cursor;
1599 while (ncursor < es->linelen && argcnt--) {
1600 while (++ncursor < es->linelen - 1 &&
1601 isspace((unsigned char)es->cbuf[ncursor]))
1603 if (ncursor < es->linelen - 1) {
1604 if (is_wordch(es->cbuf[ncursor]))
1605 while (++ncursor < es->linelen &&
1606 is_wordch(es->cbuf[ncursor]))
1609 while (++ncursor < es->linelen &&
1610 !is_wordch(es->cbuf[ncursor]) &&
1611 !isspace((unsigned char)es->cbuf[ncursor]))
1613 ncursor--;
1616 return ncursor;
1623 int ncursor;
1625 ncursor = es->cursor;
1626 while (ncursor < es->linelen && argcnt--) {
1627 while (ncursor < es->linelen &&
1628 !isspace((unsigned char)es->cbuf[ncursor]))
1629 ncursor++;
1630 while (ncursor < es->linelen &&
1631 isspace((unsigned char)es->cbuf[ncursor]))
1632 ncursor++;
1634 return ncursor;
1641 int ncursor;
1643 ncursor = es->cursor;
1644 while (ncursor > 0 && argcnt--) {
1645 while (--ncursor >= 0 && isspace((unsigned char)es->cbuf[ncursor]))
1647 while (ncursor >= 0 && !isspace((unsigned char)es->cbuf[ncursor]))
1648 ncursor--;
1649 ncursor++;
1651 return ncursor;
1658 int ncursor;
1660 ncursor = es->cursor;
1661 while (ncursor < es->linelen - 1 && argcnt--) {
1662 while (++ncursor < es->linelen - 1 &&
1663 isspace((unsigned char)es->cbuf[ncursor]))
1665 if (ncursor < es->linelen - 1) {
1666 while (++ncursor < es->linelen &&
1667 !isspace((unsigned char)es->cbuf[ncursor]))
1669 ncursor--;
1672 return ncursor;