From e3aa8afcad803befd06d750cd50ec73cccdd535e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 12 May 2025 00:25:31 +0300 Subject: [PATCH] feat(code): adjust word wrapping automatically --- .../src/widgets/type_widgets/abstract_code_type_widget.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts b/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts index 8f081a7d7..c75d85747 100644 --- a/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts +++ b/apps/client/src/widgets/type_widgets/abstract_code_type_widget.ts @@ -115,6 +115,10 @@ export default class AbstractCodeTypeWidget extends TypeWidget { } } } + + if (loadResults.isOptionReloaded("codeLineWrapEnabled")) { + this.codeEditor.setLineWrapping(options.is("codeLineWrapEnabled")); + } } }