Refine multiline selection behaviour in editors

This commit is contained in:
Nyall Dawson 2019-01-11 10:15:51 +10:00
parent fdfe0cee23
commit 9d4b80e2f1
2 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,7 @@ class Editor(QsciScintilla):
self.SendScintilla(self.SCI_SETADDITIONALSELECTIONTYPING, 1)
self.SendScintilla(self.SCI_SETMULTIPASTE, 1)
self.SendScintilla(self.SCI_SETVIRTUALSPACEOPTIONS, self.SCVS_RECTANGULARSELECTION)
# self.setWrapMode(QsciScintilla.WrapCharacter)
self.setWhitespaceVisibility(QsciScintilla.WsVisibleAfterIndent)

View File

@ -41,6 +41,7 @@ QgsCodeEditor::QgsCodeEditor( QWidget *parent, const QString &title, bool foldin
SendScintilla( SCI_SETADDITIONALSELECTIONTYPING, 1 );
SendScintilla( SCI_SETMULTIPASTE, 1 );
SendScintilla( SCI_SETVIRTUALSPACEOPTIONS, SCVS_RECTANGULARSELECTION );
}
// Workaround a bug in QScintilla 2.8.X