Enable line wrapping

This commit is contained in:
Ryan Jensen 2024-03-06 23:41:11 -06:00
parent 5d8091811d
commit 800a4c79c5

View File

@ -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);