Skip to content

Commit

Permalink
Refine multiline selection behaviour in editors
Browse files Browse the repository at this point in the history
(cherry picked from commit 9d4b80e)
  • Loading branch information
nyalldawson committed Jan 15, 2019
1 parent 74c5864 commit 8ad544d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/console/console_editor.py
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgscodeeditor.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 8ad544d

Please sign in to comment.