https://bugs.kde.org/show_bug.cgi?id=454312
Bug ID: 454312 Summary: Kate Vi mode mouse selection makes cursor position wrong (always +1 column) Product: kate Version: 22.04.1 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Vi Input Mode Assignee: kwrite-bugs-n...@kde.org Reporter: jijili...@yandex.com Target Milestone: --- Created attachment 149157 --> https://bugs.kde.org/attachment.cgi?id=149157&action=edit screenshot SUMMARY If you have text: `123456789` and you want to select 3 to 7 (vi visual mode) and operate (delete/cut/copy/replace) The "block cursor" is at 7, making it looks like the selection range is 3 to 7 But the true selection range is 3 to 6 That's different than Vim's behavior, making user can't see the real selection range STEPS TO REPRODUCE 1. Run Kate. Open a text file 2. Set Kate into Vi input mode 3. Use mouse to select text (it will enter visual mode) 4. Move mouse and select text from left to right, or from up to down OBSERVED RESULT The wrong positioned cursor (selection end position + 1 column) makes user can't see the range correctly. EXPECTED RESULT The cursor should be at the last selected character block position, like Vim (see the screenshot) 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 Such wrong positioned cursor won't occur when: 1. Make selection by h, l (left, right) keyboard 2. Select text from right to left, or from down to up -- You are receiving this mail because: You are watching all bug changes.