SUMMARY When "remove trailing spaces" feature is active, the line with cursor is included and trailing spaces are removed from it. I would like to see an option to select if current line should or should not be included. STEPS TO REPRODUCE 1. Enable "remove trailing spaces" feature. 2. Write some spaces/tabs in text editor and keep the cursor on this line. 3. Save document. OBSERVED RESULT The spaces/tabs are removed from current line. EXPECTED RESULT Have an option to define what should happen for current line when this feature is active. SOFTWARE/OS VERSIONS Operating System: Artix Linux KDE Plasma Version: 5.18.2 KDE Frameworks Version: 5.67.0 Qt Version: 5.14.1 Kernel Version: 5.4.22-1-lts OS Type: 64-bit ADDITIONAL INFORMATION This behaviour was probably introduced by "fixing" this bug: https://bugs.kde.org/show_bug.cgi?id=310712
Hello, https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/112 adds an option to remove all trailing spaces except those to the left of current cursor position, but it is not an independent to the other options (e.g. it can't be mixed with "Remove trailing spaces on modified lines"). Feel free to reopen if you think it should be an independent option *** This bug has been marked as a duplicate of bug 433455 ***