https://bugs.kde.org/show_bug.cgi?id=447153

            Bug ID: 447153
           Summary: Kate ignores the "Remove trailing spaces" being "On
                    Modified Lines" when an .editorconfig is present
           Product: kate
           Version: 21.12.0
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: rea...@gmail.com
  Target Milestone: ---

SUMMARY
***
When editing a file in a project that ships an .editorconfig file with:

trim_trailing_whitespace = true

in it, then Kate will ignore that I have set the "Remove Trailing Spaces"
option to "On Modified Lines." As a result, when I save the file and then do
"git add" and "git commit", there can be dozens of even hundreds of modified
lines even though I only touched one or two lines.

This currently makes Kate completely unusable in such projects.
***


STEPS TO REPRODUCE
1. Create an .editorconfig with:

  [*]
  trim_trailing_whitespace = true

in it.

2. Create a text file with lots of lines and spaces at the end of the lines.
3. In Settings->Configure Kate->Open/Save, set "Remove Trailing Spaces" to "On
Modified Lines."
4. Edit that file with kate and only change one line, then save.

OBSERVED RESULT
The whole file is modified.

EXPECTED RESULT
Only changed lines should be modified.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.8
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.10.87-gentoo (64-bit)
Graphics Platform: X11

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to