Editor: fix selecting multiple block selections with mouse

Change-Id: I5b46adbf38358d1396ee7120558648b1375e4047
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-04-14 14:53:20 +02:00
parent 63702b52e2
commit 3f9c1d5d2b
3 changed files with 8 additions and 1 deletions

View File

@@ -5335,7 +5335,7 @@ void TextEditorWidget::mouseMoveEvent(QMouseEvent *e)
anchorCursor.blockNumber(),
anchorColumn};
cursor.setCursors(d->generateCursorsForBlockSelection(blockSelection));
cursor.addCursors(d->generateCursorsForBlockSelection(blockSelection));
if (!cursor.isNull())
setMultiTextCursor(cursor);
} else {