amp icon indicating copy to clipboard operation
amp copied to clipboard

Files with DOS lines ending are not correctly rendered

Open BlackYoup opened this issue 8 years ago • 1 comments

How to reproduce:

  • create a file with a few lines and set the line ending to DOS style (using vim: :set ff=dos)
  • open that file with amp

Lines should be rendered in a weird way, or not rendered at all. On a 7 lines file with DOS line endings, here is how it is displayed with current master: ampdos

I also can't move through the buffer using cursor::move_up or cursor::move_down

I'd be happy to help fixing that but I'm not sure where to look at right now :)

BlackYoup avatar Jan 30 '18 12:01 BlackYoup

This is a known bug. I'm certainly not opposed to adding support for it, but it's low on the list at the moment (and it may have widespread implications due to line splitting being targeted at unix line endings in multiple locations). 🙂

jmacdonald avatar Feb 10 '18 02:02 jmacdonald