cosmic-edit icon indicating copy to clipboard operation
cosmic-edit copied to clipboard

Text pasted into end of file has newlines removed on save, then ctrl+z crashes the editor

Open claybford opened this issue 10 months ago • 2 comments

Pretty much the title:

  • open an existing file (for me, editing userChrome.css for Firefox, which was originally created in Windows, if relevant)
  • paste code into the end of the file
  • save (ctrl+s)
  • newlines dissappear (the file does indeed save like this)
  • ctrl+z -> editor crashes out

claybford avatar Feb 13 '25 02:02 claybford

Might be related to https://github.com/pop-os/cosmic-edit/issues/322

WatchMkr avatar May 14 '25 18:05 WatchMkr

The crash also occurs on other triggers after final newlines are eaten, e.g. on pressing Enter.

herrdiener avatar May 30 '25 14:05 herrdiener