Commit 317373e8 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Kurt Hindenburg
Browse files

Fix off by one in getting highlight boundary

parent 67c7cc98
......@@ -1875,7 +1875,7 @@ QPoint TerminalDisplay::findWordEnd(const QPoint &pnt)
QSharedPointer<HotSpot> hotspot = _filterChain->hotSpotAt(pnt.y(), pnt.x());
if (hotspot) {
return QPoint(hotspot->endColumn(), hotspot->endLine());
return QPoint(hotspot->endColumn() - 1, hotspot->endLine());
const int regSize = qMax(_screenWindow->windowLines(), 10);
Supports Markdown
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