(cm, handle, op)
| 2807 | } |
| 2808 | |
| 2809 | function changeLine(cm, handle, op) { |
| 2810 | var no = handle, line = handle, doc = cm.doc; |
| 2811 | if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle)); |
| 2812 | else no = lineNo(handle); |
| 2813 | if (no == null) return null; |
| 2814 | if (op(line, no)) regChange(cm, no, no + 1); |
| 2815 | else return null; |
| 2816 | return line; |
| 2817 | } |
| 2818 | |
| 2819 | function findPosH(doc, pos, dir, unit, visually) { |
| 2820 | var line = pos.line, ch = pos.ch, origDir = dir; |
no test coverage detected