We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667a030 commit 4eac2a5Copy full SHA for 4eac2a5
lib/codemirror.js
@@ -601,7 +601,10 @@ var CodeMirror = (function() {
601
// determine which DOM updates have to be made, and makes the
602
// updates.
603
function updateDisplay(changes) {
604
- if (!wrapper.clientWidth) return;
+ if (!wrapper.clientWidth) {
605
+ showingFrom = showingTo = 0;
606
+ return;
607
+ }
608
// First create a range of theoretically intact lines, and punch
609
// holes in that using the change info.
610
var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}];
0 commit comments