Lines Matching refs:intact
453 // Create a range of theoretically intact lines, and punch holes
455 var intact = [{from: Math.max(display.showingFrom, doc.first),
457 if (intact[0].from >= intact[0].to) intact = [];
458 else intact = computeIntact(intact, changes);
460 // intact ranges because changes in continued fragments of the
461 // intact lines do require the lines to be redrawn.
463 for (var i = 0; i < intact.length; ++i) {
464 var range = intact[i], merged;
468 else { intact.splice(i--, 1); break; }
474 for (var i = 0; i < intact.length; ++i) {
475 var range = intact[i];
478 if (range.from >= range.to) intact.splice(i--, 1);
485 intact.sort(function(a, b) {return a.from - b.from;});
489 patchDisplay(cm, from, to, intact, positionsChangedFrom);
533 function computeIntact(intact, changes) {
536 for (var j = 0, l2 = intact.length; j < l2; ++j) {
537 var range = intact[j];
549 intact = intact2;
551 return intact;
567 function patchDisplay(cm, from, to, intact, updateNumbersFrom) {
570 if (!intact.length && (!webkit || !cm.display.currentWheelTarget))
585 var nextIntact = intact.shift(), lineN = from;
587 if (nextIntact && nextIntact.to == lineN) nextIntact = intact.shift();
603 // This line is intact. Skip to the actual node. Update its