https://bugs.kde.org/show_bug.cgi?id=473328
Bug ID: 473328 Summary: Remove Trailing Spaces option should ignore empty lines Classification: Applications Product: kate Version: 23.04.3 Platform: Other OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: indentation Assignee: kwrite-bugs-n...@kde.org Reporter: jakieschneide...@gmail.com Target Milestone: --- 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 -- You are receiving this mail because: You are watching all bug changes.