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
Attempting a fix here: https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/430