Commit 502e86b7 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Only do line selection in the gutter when the line numbers are visible

While 2641496a removed the marks check entirely, a fix for the same
issue made on the master branch (1263babf) changed it to check
whether the line numbers are visible. This is more correct.

Reviewed-by: mae
parent d19ca58b
......@@ -3557,7 +3557,7 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
toggleBlockVisible(c);
d->moveCursorVisible(false);
}
} else if (e->pos().x() > markWidth) {
} else if (d->m_lineNumbersVisible && e->pos().x() > markWidth) {
QTextCursor selection = cursor;
selection.setVisualNavigation(true);
d->extraAreaSelectionAnchorBlockNumber = selection.blockNumber();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment