(line, pos, dir, byUnit)
| 5883 | } |
| 5884 | |
| 5885 | function moveInLine(line, pos, dir, byUnit) { |
| 5886 | if (!byUnit) return pos + dir; |
| 5887 | do pos += dir; |
| 5888 | while (pos > 0 && isExtendingChar(line.text.charAt(pos))); |
| 5889 | return pos; |
| 5890 | } |
| 5891 | |
| 5892 | // This is somewhat involved. It is needed in order to move |
| 5893 | // 'visually' through bi-directional text -- i.e., pressing left |
no test coverage detected