(boundToLine)
| 1456 | } |
| 1457 | } |
| 1458 | function moveOnce(boundToLine) { |
| 1459 | if (ch == (dir < 0 ? 0 : lineObj.text.length)) { |
| 1460 | if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0; |
| 1461 | else return false; |
| 1462 | } else ch += dir; |
| 1463 | return true; |
| 1464 | } |
| 1465 | if (unit == "char") moveOnce(); |
| 1466 | else if (unit == "column") moveOnce(true); |
| 1467 | else if (unit == "word") { |
no test coverage detected