Cannot edit files containing \r


When I try to edit a file with ^M characters (AKA \r or 0x0D) as newlines (without \n), Atom does funny things:

  • If the file also ends with a \r, the tab will have the blue circle of modified buffer (I guess that is because of the Ensure Single Trailing Newline);

  • if it’s long enough, the file will show up as an empty buffer, with my cursor on the top right;

  • Clicking around, using arrow keys, etc. moves the cursor normally, but the caret will always be shown on the first line;


I literally just fixed this bug in core. Everything should be cool in Atom 0.79.0.


That’s great, thank you!