(cm, f)
| 1303 | }; |
| 1304 | } |
| 1305 | function runInOp(cm, f) { |
| 1306 | var withOp = !cm.curOp, result; |
| 1307 | if (withOp) startOperation(cm); |
| 1308 | try { result = f(); } |
| 1309 | finally { if (withOp) endOperation(cm); } |
| 1310 | return result; |
| 1311 | } |
| 1312 | |
| 1313 | function regChange(cm, from, to, lendiff) { |
| 1314 | if (from == null) from = cm.doc.first; |
no test coverage detected