ve.ui.CodeMirror.v6: use view's direction when updating gutter width

I74bcbc46b0 erroneously passed the model's directionality (how it is
saved) and not the view. This caused misalignment issues when changing
directionality.

Bug: T374196
Follow-Up: I74bcbc46b0b62ff2ed138fe57d852a3cd87c22d0
Change-Id: I81e863e19d6d0bad2cc2be743df896e17a8dc548
This commit is contained in:
MusikAnimal 2024-10-31 00:38:45 -04:00
parent e87db823f3
commit 2f4c265ba9

View file

@ -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 */