(cm)
| 1357 | |
| 1358 | var nextOpId = 0; |
| 1359 | function startOperation(cm) { |
| 1360 | cm.curOp = { |
| 1361 | // An array of ranges of lines that have to be updated. See |
| 1362 | // updateDisplay. |
| 1363 | changes: [], |
| 1364 | forceUpdate: false, |
| 1365 | updateInput: null, |
| 1366 | userSelChange: null, |
| 1367 | textChanged: null, |
| 1368 | selectionChanged: false, |
| 1369 | cursorActivity: false, |
| 1370 | updateMaxLine: false, |
| 1371 | updateScrollPos: false, |
| 1372 | id: ++nextOpId |
| 1373 | }; |
| 1374 | if (!delayedCallbackDepth++) delayedCallbacks = []; |
| 1375 | } |
| 1376 | |
| 1377 | function endOperation(cm) { |
| 1378 | var op = cm.curOp, doc = cm.doc, display = cm.display; |
no outgoing calls
no test coverage detected