(doc, handle, changeType, op)
| 5548 | // returning the number and optionally registering the line as |
| 5549 | // changed. |
| 5550 | function changeLine(doc, handle, changeType, op) { |
| 5551 | var no = handle, line = handle; |
| 5552 | if (typeof handle == "number") { line = getLine(doc, clipLine(doc, handle)); } |
| 5553 | else { no = lineNo(handle); } |
| 5554 | if (no == null) { return null } |
| 5555 | if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); } |
| 5556 | return line |
| 5557 | } |
| 5558 | |
| 5559 | // The document is represented as a BTree consisting of leaves, with |
| 5560 | // chunk of lines in them, and branches, with up to ten leaves or |
no test coverage detected