Mercurial > vim
diff src/fileio.c @ 6635:050e6df85f99 v7.4.643
updated for version 7.4.643
Problem: Using the default file format for Mac files. (Issue 77)
Solution: Reset the try_mac counter in the right place. (Oswald)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 27 Feb 2015 17:48:09 +0100 |
parents | a532340f3940 |
children | 7347229a646a |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -2099,12 +2099,12 @@ rewind_retry: /* First try finding a NL, for Dos and Unix */ if (try_dos || try_unix) { + /* Reset the carriage return counter. */ + if (try_mac) + try_mac = 1; + for (p = ptr; p < ptr + size; ++p) { - /* Reset the carriage return counter. */ - if (try_mac) - try_mac = 1; - if (*p == NL) { if (!try_unix