Skip to content

Commit 4a3ad9b

Browse files
Dominator008marijnh
authored andcommitted
Fix bug in setSize()
The function was referring to "cm", which is not necessarily defined.
1 parent 562af66 commit 4a3ad9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3130,7 +3130,7 @@ window.CodeMirror = (function() {
31303130
if (width != null) this.display.wrapper.style.width = interpret(width);
31313131
if (height != null) this.display.wrapper.style.height = interpret(height);
31323132
if (this.options.lineWrapping)
3133-
cm.display.measureLineCache.length = cm.display.measureLineCachePos = 0;
3133+
this.display.measureLineCache.length = this.display.measureLineCachePos = 0;
31343134
this.curOp.forceUpdate = true;
31353135
}),
31363136

0 commit comments

Comments
 (0)