From 800a4c79c547f59bd5ae09a691a2ad733246fb4a Mon Sep 17 00:00:00 2001 From: Ryan Jensen Date: Wed, 6 Mar 2024 23:41:11 -0600 Subject: [PATCH] Enable line wrapping --- src/editor/TextEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor/TextEditor.cpp b/src/editor/TextEditor.cpp index 1a4b8773..b59280cd 100644 --- a/src/editor/TextEditor.cpp +++ b/src/editor/TextEditor.cpp @@ -76,6 +76,9 @@ TextEditor::TextEditor(QWidget *parent) : ScintillaIFace(parent) { setScrollWidthTracking(true); setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents); + // TODO: add a setting / button to toggle line wrapping + setWrapMode(SC_WRAP_WORD); + setMarginLeft(4); setMarginTypeN(Staged, SC_MARGIN_SYMBOL); setMarginTypeN(LineNumber, SC_MARGIN_NUMBER);