Skip to content

Commit

Permalink
Make sure changing the mode actually causes a re-highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Apr 29, 2011
1 parent 574e6b6 commit ebb15ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/codemirror.js
Expand Up @@ -966,6 +966,7 @@ var CodeMirror = (function() {
for (var i = 0, l = lines.length; i < l; ++i)
lines[i].stateAfter = null;
work = [0];
startWorker();
}
function gutterChanged() {
var visible = options.gutter || options.lineNumbers;
Expand Down

0 comments on commit ebb15ab

Please sign in to comment.