Skip to content

Commit 07b0df5

Browse files
committed
Revert "Fix word wrapping bug"
This reverts commit 567c45b.
1 parent 567c45b commit 07b0df5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: static/panes/editor.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1225,12 +1225,8 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
12251225

12261226
// Only update the options if needed
12271227
if (this.settings.wordWrap) {
1228-
// super.resize is going to _.defer, so we also _.defer to get those updates
1229-
// This fixes https://github.com/compiler-explorer/compiler-explorer/issues/4486
1230-
_.defer(() => {
1231-
this.editor.updateOptions({
1232-
wordWrapColumn: this.editor.getLayoutInfo().viewportColumn,
1233-
});
1228+
this.editor.updateOptions({
1229+
wordWrapColumn: this.editor.getLayoutInfo().viewportColumn,
12341230
});
12351231
}
12361232
}

0 commit comments

Comments
 (0)