(cm, handle, changeType, op)
| 3697 | // returning the number and optionally registering the line as |
| 3698 | // changed. |
| 3699 | function changeLine(cm, handle, changeType, op) { |
| 3700 | var no = handle, line = handle, doc = cm.doc; |
| 3701 | if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle)); |
| 3702 | else no = lineNo(handle); |
| 3703 | if (no == null) return null; |
| 3704 | if (op(line, no)) regLineChange(cm, no, changeType); |
| 3705 | return line; |
| 3706 | } |
| 3707 | |
| 3708 | // Helper for deleting text near the selection(s), used to implement |
| 3709 | // backspace, delete, and similar functionality. |
no test coverage detected
searching dependent graphs…