Bug 473328

Summary: Remove Trailing Spaces option should ignore empty lines
Product: [Applications] kate Reporter: Jacob S. <jakieschneider13>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: jakieschneider13, waqar.17a
Priority: NOR    
Version First Reported In: 23.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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 ***