(cm)
| 1216 | |
| 1217 | var nextOpId = 0; |
| 1218 | function startOperation(cm) { |
| 1219 | cm.curOp = { |
| 1220 | // An array of ranges of lines that have to be updated. See |
| 1221 | // updateDisplay. |
| 1222 | changes: [], |
| 1223 | updateInput: null, |
| 1224 | userSelChange: null, |
| 1225 | textChanged: null, |
| 1226 | selectionChanged: false, |
| 1227 | updateMaxLine: false, |
| 1228 | updateScrollPos: false, |
| 1229 | id: ++nextOpId |
| 1230 | }; |
| 1231 | if (!delayedCallbackDepth++) delayedCallbacks = []; |
| 1232 | } |
| 1233 | |
| 1234 | function endOperation(cm) { |
| 1235 | var op = cm.curOp, doc = cm.doc, display = cm.display; |
no outgoing calls
no test coverage detected