0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2015-02-27 17:48:09 +01:00
parent d45c07ac74
commit c6b7217ff5
4 changed files with 52 additions and 26 deletions

View File

@@ -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