Skip to content

Commit 4eac2a5

Browse files
committed
fix problem that caused refresh to be ignored after unhiding
1 parent 667a030 commit 4eac2a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/codemirror.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,10 @@ var CodeMirror = (function() {
601601
// determine which DOM updates have to be made, and makes the
602602
// updates.
603603
function updateDisplay(changes) {
604-
if (!wrapper.clientWidth) return;
604+
if (!wrapper.clientWidth) {
605+
showingFrom = showingTo = 0;
606+
return;
607+
}
605608
// First create a range of theoretically intact lines, and punch
606609
// holes in that using the change info.
607610
var intact = changes === true ? [] : [{from: showingFrom, to: showingTo, domStart: 0}];

0 commit comments

Comments
 (0)