forked from qt-creator/qt-creator
Terminal: fix copy to clipboard of bottom up selection
The multi line selection from bottom right corner to top left was broken for copy to clipboard. Change-Id: Ica40ec2ce5bb7b9d4b0187ebb454cd16e039e339 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -1041,6 +1041,8 @@ void TerminalWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
if (start > newEnd) {
|
||||
std::swap(start, newEnd);
|
||||
}
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
|
||||
if (m_selectLineMode) {
|
||||
m_selection->start = m_surface->gridToPos({0, m_surface->posToGrid(start).y()});
|
||||
|
||||
Reference in New Issue
Block a user