Bug 454417

Summary: 'gv' can't select last selection sometimes in Kate Vi input mode
Product: [Applications] kate Reporter: red_Arti <jijiliu35>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nck
Priority: NOR    
Version: 22.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description red_Arti 2022-05-26 03:56:25 UTC
STEPS TO REPRODUCE
1. Open Kate and set into Vi input mode
2. Make a selection (visual mode) from right to left, or from down to up. (Use 'v', 'V', or mouse)
3. Press ESC to cancel the selection
4. Press 'gv' to reuse last selection

OBSERVED RESULT
Can't correctly select last selection

EXPECTED RESULT
'gv' restores last selection

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Graphics Platform: X11

ADDITIONAL INFORMATION
This bug won't occur if the first selection is from left to right , or from up to down
Comment 1 Sarah Wong 2022-10-18 20:24:58 UTC
Attempting a fix here:
https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/430