Bug 473328 - Remove Trailing Spaces option should ignore empty lines
Summary: Remove Trailing Spaces option should ignore empty lines
Status: RESOLVED DUPLICATE of bug 460749
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: 23.04.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-13 10:33 UTC by Jacob S.
Modified: 2024-09-30 15:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob S. 2023-08-13 10:33:29 UTC
SUMMARY
Only remove trailing whitespaces from non-empty lines

STEPS TO REPRODUCE
When Kate saves a file, by default it will remove trailing spaces from a line, which is fantastic, but in combination with 1s autosave intervals, the cursor will very quickly jump to the beginning of the line, which can become frustrating.

OBSERVED RESULT
Cursor jumps to the beginning of the line, as the line consist only of whitespace and so is cleared.

EXPECTED RESULT
By ignoring lines containing only whitespace, this behaviour is accounted for.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.27.7
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Comment 1 Waqar Ahmed 2024-09-30 15:44:21 UTC

*** This bug has been marked as a duplicate of bug 460749 ***