mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch: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)
c6b7217ff5
This commit is contained in:
@@ -1543,12 +1543,12 @@ rewind_retry:
|
||||
if (fileformat == EOL_UNKNOWN) {
|
||||
/* First try finding a NL, for Dos and Unix */
|
||||
if (try_dos || try_unix) {
|
||||
for (p = ptr; p < ptr + size; ++p) {
|
||||
// Reset the carriage return counter.
|
||||
if (try_mac) {
|
||||
try_mac = 1;
|
||||
}
|
||||
// Reset the carriage return counter.
|
||||
if (try_mac) {
|
||||
try_mac = 1;
|
||||
}
|
||||
|
||||
for (p = ptr; p < ptr + size; ++p) {
|
||||
if (*p == NL) {
|
||||
if (!try_unix
|
||||
|| (try_dos && p > ptr && p[-1] == CAR))
|
||||
|
Reference in New Issue
Block a user