Merge "ve.ui.CodeMirrorAction.v6: Use direction of surface view, not model view"

This commit is contained in:
jenkins-bot 2024-11-19 05:03:00 +00:00 committed by Gerrit Code Review
commit 6cfde8a849

View file

@ -96,7 +96,7 @@ ve.ui.CodeMirrorAction.prototype.toggle = function ( enable ) {
surface.mirror.view.viewState.printing = true;
// Account for the gutter width in the margin.
action.updateGutterWidth( doc.getDir() );
action.updateGutterWidth( surfaceView.getDocument().getDir() );
// Set focus on the surface view.
surfaceView.focus();