There are these red blocks at the end of some lines when I open the file.
If I hit save, they all disappear and suddenly I have a couple of hundred lines changed.
Can someone explain what just happened here and how I can make atom not do that?
Thanks
Which theme are you using?
I'm guessing those red blocks are trailing whitespace, and those get removed by the Whitespace package by default. You can turn this behavior off in the settings for the Whitespace package, there's a Remove Trailing Whitespace
config.
Let me know if this doesn't explain the behavior you observed.
You also might be interested in this issue on the Whitespace package's repository: https://github.com/atom/whitespace/issues/10
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Most helpful comment
Which theme are you using?
I'm guessing those red blocks are trailing whitespace, and those get removed by the Whitespace package by default. You can turn this behavior off in the settings for the Whitespace package, there's a
Remove Trailing Whitespace
config.Let me know if this doesn't explain the behavior you observed.