Bug 418338 - Add option to ignore current line from "remove trailing spaces"
Summary: Add option to ignore current line from "remove trailing spaces"
Status: RESOLVED DUPLICATE of bug 433455
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-29 19:45 UTC by Juraj
Modified: 2021-04-15 08:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juraj 2020-02-29 19:45:15 UTC
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
Comment 1 Jan Paul Batrina 2021-04-15 08:00:33 UTC
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 ***