Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(code): adjust word wrapping automatically
Elian Dorane3aa8afcad80
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.tsindex 8f081a7d78..c75d857477 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"));+ }}}