amp
amp copied to clipboard
Files with DOS lines ending are not correctly rendered
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:

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 :)
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). 🙂