Skip to content
Permalink
Browse files

Refine multiline selection behaviour in editors

  • Loading branch information
nyalldawson committed Jan 11, 2019
1 parent fdfe0ce commit 9d4b80e2f1aa3a35db01110248905a668a2b6246
Showing with 2 additions and 0 deletions.
  1. +1 −0 python/console/console_editor.py
  2. +1 −0 src/gui/qgscodeeditor.cpp
@@ -148,6 +148,7 @@ def __init__(self, parent=None):

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

0 comments on commit 9d4b80e

Please sign in to comment.
You can’t perform that action at this time.