Skip to content
Commit ef3773b8 authored by Pavel Khlebovich's avatar Pavel Khlebovich Committed by Kurt Hindenburg
Browse files

Fix crash in extendSelection

Summary:
Fix crash when doing word selection or line selection
and moving the cursor to the end of the screen.
After 4e09f089
Konsole tries to read out of bounds when you double
click to select a whole empty line, and hold down the
mouse button and drag to the right.

Note: still crashes with on some extendSelections
such when y=-1

BUG: 402452

Test Plan:
Doesn't crash anymore, selecting the last column works,
both in normal selection, line selection and word selection.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Differential Revision: https://phabricator.kde.org/D17757

(cherry picked from commit b85bbaa8)
parent 7dfae7a7
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