This patch allows using ff=dos and noendofline and binary:

diff --git a/src/misc2.c b/src/misc2.c
index 724aa43..61023b6 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -3016,7 +3016,7 @@ get_fileformat_force(buf, eap)
     else
     {
        if ((eap != NULL && eap->force_bin != 0)
-                              ? (eap->force_bin == FORCE_BIN) : buf->b_p_bin)
+                              ? (eap->force_bin == FORCE_BIN) : 0)
            return EOL_UNIX;
        c = *buf->b_p_ff;
     }

Then the result should look like it should.

Is anyone interested in this patch - should I try feeding it upstream?

I personally think its important that my beloved editor can write files
the way they are - because very often its best to keep things the way
they are. Changing eol behaviour is causing trouble in distributed dev
environments because diffs show that all lines have changed.

Marc Weber

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to