diff --git a/resources/ve-cm/ve.ui.CodeMirrorAction.v6.js b/resources/ve-cm/ve.ui.CodeMirrorAction.v6.js index c58340c7..222762b9 100644 --- a/resources/ve-cm/ve.ui.CodeMirrorAction.v6.js +++ b/resources/ve-cm/ve.ui.CodeMirrorAction.v6.js @@ -240,7 +240,7 @@ ve.ui.CodeMirrorAction.prototype.onDocumentPrecommit = function ( tx ) { this.surface.mirror.view.dispatch( { changes: replacements[ i ] } ); } - action.updateGutterWidth( this.surface.getModel().getDocument().getDir() ); + action.updateGutterWidth( this.surface.getView().getDocument().getDir() ); }; /* Registration */