(boundToLine)
| 4846 | return lineObj = getLine(doc, l); |
| 4847 | } |
| 4848 | function moveOnce(boundToLine) { |
| 4849 | var next = (visually ? moveVisually : moveLogically)(lineObj, ch, dir, true); |
| 4850 | if (next == null) { |
| 4851 | if (!boundToLine && findNextLine()) { |
| 4852 | if (visually) ch = (dir < 0 ? lineRight : lineLeft)(lineObj); |
| 4853 | else ch = dir < 0 ? lineObj.text.length : 0; |
| 4854 | } else return false |
| 4855 | } else ch = next; |
| 4856 | return true; |
| 4857 | } |
| 4858 | |
| 4859 | if (unit == "char") { |
| 4860 | moveOnce() |
no test coverage detected