diff -r 43af1e698c9d -r c83dcb7c6147 Preferences/ConfigurationPages/EditorStylesPage.py --- a/Preferences/ConfigurationPages/EditorStylesPage.py Tue Mar 05 19:00:06 2019 +0100 +++ b/Preferences/ConfigurationPages/EditorStylesPage.py Tue Mar 05 19:50:32 2019 +0100 @@ -72,6 +72,18 @@ self.tr("Indicator in Line Number Margin"), QsciScintilla.WrapFlagInMargin) + self.wrapIndentComboBox.addItem( + self.tr("Fixed Amount"), QsciScintilla.WrapIndentFixed) + self.wrapIndentComboBox.addItem( + self.tr("Aligned to First Line"), QsciScintilla.WrapIndentSame) + self.wrapIndentComboBox.addItem( + self.tr("Aligned to First Line plus One"), + QsciScintilla.WrapIndentIndented) + if QSCINTILLA_VERSION() >= 0x020B00: + self.wrapIndentComboBox.addItem( + self.tr("Aligned to First Line plus Two"), + QsciScintilla.WrapIndentDeeplyIndented) + if QSCINTILLA_VERSION() < 0x020800: self.caretlineAlwaysVisibleCheckBox.hide() @@ -155,6 +167,9 @@ self.wrapVisualComboBox.setCurrentIndex( self.wrapVisualComboBox.findData( Preferences.getEditor("WrapVisualFlag"))) + self.wrapIndentComboBox.setCurrentIndex( + self.wrapIndentComboBox.findData( + Preferences.getEditor("WrapIndentMode"))) self.edgeModeCombo.setCurrentIndex( self.edgeModes.index(Preferences.getEditor("EdgeMode"))) @@ -321,6 +336,9 @@ "WrapVisualFlag", self.wrapVisualComboBox.itemData( self.wrapVisualComboBox.currentIndex())) Preferences.setEditor( + "WrapIndentMode", self.wrapIndentComboBox.itemData( + self.wrapIndentComboBox.currentIndex())) + Preferences.setEditor( "EdgeMode", self.edgeModes[self.edgeModeCombo.currentIndex()]) Preferences.setEditor( "EdgeColumn", self.edgeLineColumnSlider.value())