mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Improve multiline cursor behavior in Python console and expression editor
Now supports multi-line inserts and pastes
This commit is contained in:
parent
e9e1e0d6f3
commit
dab069e1ea
@ -146,6 +146,9 @@ class Editor(QsciScintilla):
|
||||
self.setEdgeMode(QsciScintilla.EdgeLine)
|
||||
self.setEdgeColumn(80)
|
||||
|
||||
self.SendScintilla(self.SCI_SETADDITIONALSELECTIONTYPING, 1)
|
||||
self.SendScintilla(self.SCI_SETMULTIPASTE, 1)
|
||||
|
||||
# self.setWrapMode(QsciScintilla.WrapCharacter)
|
||||
self.setWhitespaceVisibility(QsciScintilla.WsVisibleAfterIndent)
|
||||
# self.SendScintilla(QsciScintilla.SCI_SETHSCROLLBAR, 0)
|
||||
|
@ -38,6 +38,9 @@ QgsCodeEditor::QgsCodeEditor( QWidget *parent, const QString &title, bool foldin
|
||||
}
|
||||
setSciWidget();
|
||||
setHorizontalScrollBarPolicy( Qt::ScrollBarAsNeeded );
|
||||
|
||||
SendScintilla( SCI_SETADDITIONALSELECTIONTYPING, 1 );
|
||||
SendScintilla( SCI_SETMULTIPASTE, 1 );
|
||||
}
|
||||
|
||||
// Workaround a bug in QScintilla 2.8.X
|
||||
|
Loading…
x
Reference in New Issue
Block a user