(boundToLine)
| 4823 | return lineObj = getLine(doc, l); |
| 4824 | } |
| 4825 | function moveOnce(boundToLine) { |
| 4826 | var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true); |
| 4827 | if (next == null) { |
| 4828 | if (!boundToLine && findNextLine()) { |
| 4829 | if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj); |
| 4830 | else ch = dir < 0 ? lineObj.text.length : 0; |
| 4831 | } else return false |
| 4832 | } else ch = next; |
| 4833 | return true; |
| 4834 | } |
| 4835 | |
| 4836 | if (unit == "char") { |
| 4837 | moveOnce() |
no test coverage detected