Fixing layout churn in codemirror.

This commit is contained in:
Ben Vanik 2013-12-22 13:22:26 -08:00
parent d861ef8aab
commit 47f0397245
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ module.controller('FunctionViewController', function(
// Set last to make all option changes stick.
switch (codeType) {
case 'source':
updateSourceCode(fn);
cm.operation(function() {
updateSourceCode(fn);
});
break;
default:
var value = fn ? fn.disasm[codeType] : null;