Bug 455600

Summary: Multiple lines are not correctly selected from the last line by pressing the line number when text wrap is enabled
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Fushan Wen <qydwhotmail>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: observed.mp4

Description Fushan Wen 2022-06-19 10:30:35 UTC
Created attachment 149922 [details]
observed.mp4

SUMMARY
If I have two lines of long text that are wrapped to show in two lines, and text wrap is enabled, when I try to select text from the last line to the first line by pressing the line number, the last line is not fully selected.


STEPS TO REPRODUCE
1. Type two long lines in Kate/KWrite
2. Make sure Text Wrap is enabled and the two lines are wrapped.
3. Select from the last line.

OBSERVED RESULT
observed.mp4

EXPECTED RESULT
Two lines are selected.

SOFTWARE/OS VERSIONS
Information for package ktexteditor:
------------------------------------
Repository     : @System
Name           : ktexteditor
Version        : 5.95.0git.20220618T102210~994e846-ku.14.1
Arch           : x86_64
Vendor         : obs://build.opensuse.org/KDE:Unstable
Installed Size : 3.6 MiB
Installed      : Yes
Status         : up-to-date
Source package : ktexteditor-5.95.0git.20220618T102210~994e846-ku.14.1.src
Upstream URL   : https://www.kde.org
Summary        : Embeddable text editor component