Comment #8 on issue 77 by [email protected]: [patch] Non-empty file without EOL markers should use default fileformat instead of mac.
https://code.google.com/p/vim/issues/detail?id=77

Any file that either a) doesn't end with a carriage return, or b) is larger than the initial read buffer, and doesn't happen to have a carriage return in exactly the right place. For example:

$ printf 'one\rtwo\rthree' > maclines
$ echo 'set ffs=dos,mac' > vimrc
$ vim -u vimrc maclines

As of version 7.4.640, this file is set to dos format; the attached patch (issue-77-repair.diff) fixes this.

I apologize for failing to notice the subtle difference between the original and updated minimal patches before it was merged.

Attachments:
        issue-77-repair.diff  510 bytes

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message from the "vim_dev" 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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui