(line, pos, dir, byUnit)
| 8672 | } |
| 8673 | |
| 8674 | function moveInLine(line, pos, dir, byUnit) { |
| 8675 | if (!byUnit) return pos + dir; |
| 8676 | do pos += dir; |
| 8677 | while (pos > 0 && isExtendingChar(line.text.charAt(pos))); |
| 8678 | return pos; |
| 8679 | } |
| 8680 | |
| 8681 | // This is needed in order to move 'visually' through bi-directional |
| 8682 | // text -- i.e., pressing left should make the cursor go left, even |
no test coverage detected