Home | History | Annotate | Download | only in jline

Lines Matching defs:where

1494      * Move the cursor <i>where</i> characters.
1503 int where = num;
1505 if ((buf.cursor == 0) && (where <= 0)) {
1509 if ((buf.cursor == buf.buffer.length()) && (where >= 0)) {
1513 if ((buf.cursor + where) < 0) {
1514 where = -buf.cursor;
1515 } else if ((buf.cursor + where) > buf.buffer.length()) {
1516 where = buf.buffer.length() - buf.cursor;
1519 moveInternal(where);
1521 return where;
1538 * Move the cursor <i>where</i> characters, withough checking the current
1541 * @param where
1544 private final void moveInternal(final int where) throws IOException {
1545 // debug ("move cursor " + where + " ("
1546 // + buf.cursor + " => " + (buf.cursor + where) + ")");
1547 buf.cursor += where;
1550 if (where < 0) {
1551 back(Math.abs(where));
1555 int oldLine = (cursor - where) / width;
1568 if (where < 0) {
1570 for (int i = buf.cursor; i < buf.cursor - where; i++) {
1588 printCharacters(buf.buffer.substring(buf.cursor - where, buf.cursor).toCharArray());
1597 printCharacters(c, Math.abs(where));