-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
viewer: exceeding newline on '\r\n' terminator #1595
Comments
|
branch: 1595_newline (parent: master) |
Fix does not seem to work on pattern, like this:
At least newline count mismatches between viewer/editor: 3<->4 and 4<->5 look weird.
I'm not sure what we expect to see on MacOSX. |
hypothesis: '\n', '\r\n' and '\r' is a <EOL>
will be transformed in
what's wrong? |
|
|
Replying to angel_il:
It's inconsistent with _our_ editor:
As you see '\r' is not treated as newline, i'm just curious why viewer should screw it up?
viewer from branch:
BTW, as we try to view/edit foreign files we mignt need choice where file did come from: |
because '\r', \r\n, \n is the end of line. |
Fixed: [cd27ee2] |
|
Important
This issue was migrated from Trac:
slyfox
(@trofi)Steps to reproduce:
$ printf "1\r\n2\r\n" > /tmp/foo.txt
$ mcview /tmp/foo.txt # ugh, stupious newline between 1 and 2
$ mcedit /tmp/foo.txt # normal mode
4.7.0-pre2-29-g5a8923e
The text was updated successfully, but these errors were encountered: