diff --git a/python/console/console_editor.py b/python/console/console_editor.py index 890029aa86f..53854ec2a7b 100644 --- a/python/console/console_editor.py +++ b/python/console/console_editor.py @@ -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) diff --git a/src/gui/qgscodeeditor.cpp b/src/gui/qgscodeeditor.cpp index 6b3d7422b64..52d2a1c2dcd 100644 --- a/src/gui/qgscodeeditor.cpp +++ b/src/gui/qgscodeeditor.cpp @@ -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