(boundToLine)
| 3711 | return lineObj = getLine(doc, l); |
| 3712 | } |
| 3713 | function moveOnce(boundToLine) { |
| 3714 | var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true); |
| 3715 | if (next == null) { |
| 3716 | if (!boundToLine && findNextLine()) { |
| 3717 | if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj); |
| 3718 | else ch = dir < 0 ? lineObj.text.length : 0; |
| 3719 | } else return (possible = false); |
| 3720 | } else ch = next; |
| 3721 | return true; |
| 3722 | } |
| 3723 | |
| 3724 | if (unit == "char") moveOnce(); |
| 3725 | else if (unit == "column") moveOnce(true); |
no test coverage detected