SUMMARY *** Selection -> Add cursors to line ends: if cursor set to the beginning of long wrapped line, cursor set into the last line of wrapped long text, resulting in text typed in the middle of that long wrapped line *** STEPS TO REPRODUCE 1. Open a file with long lines that wrap to new line 2. Select some lines including the wrapped line 3. Select from menu: [selection] then [Add cursors to line ends] 4. Press [Home] key twice 5. Type something OBSERVED RESULT New content appears in the middle of the wraped line EXPECTED RESULT New content should appear at the beginning the wrapped long line SOFTWARE/OS VERSIONS Linux/KDE Plasma: Version 22.12.1 ersion: Version 5.102.0 Qt Version: Version 5.15.8 (built against 5.15.8) ADDITIONAL INFORMATION
Kate is affected as well, because same menu and functionality is available in Kate as well.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/475
Git commit e4dbff30b1a5c14b3ae4923435365558a2e122d4 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 26/01/2023 at 13:44. Pushed by cullmann into branch 'master'. Fix home key doesn't move secondary cursor to start M +1 -1 src/view/kateviewinternal.cpp https://invent.kde.org/frameworks/ktexteditor/commit/e4dbff30b1a5c14b3ae4923435365558a2e122d4