(cm, handle, op)
| 2508 | } |
| 2509 | |
| 2510 | function changeLine(cm, handle, op) { |
| 2511 | var no = handle, line = handle, doc = cm.doc; |
| 2512 | if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle)); |
| 2513 | else no = lineNo(handle); |
| 2514 | if (no == null) return null; |
| 2515 | if (op(line, no)) regChange(cm, no, no + 1); |
| 2516 | else return null; |
| 2517 | return line; |
| 2518 | } |
| 2519 | |
| 2520 | function findPosH(doc, pos, dir, unit, visually) { |
| 2521 | var line = pos.line, ch = pos.ch; |
no test coverage detected