(cm, f)
| 1453 | }; |
| 1454 | } |
| 1455 | function runInOp(cm, f) { |
| 1456 | var withOp = !cm.curOp, result; |
| 1457 | if (withOp) startOperation(cm); |
| 1458 | try { result = f(); } |
| 1459 | finally { if (withOp) endOperation(cm); } |
| 1460 | return result; |
| 1461 | } |
| 1462 | |
| 1463 | function regChange(cm, from, to, lendiff) { |
| 1464 | if (from == null) from = cm.doc.first; |
no test coverage detected