- Select diff algorithm other than 'default'
- Enable 'Ignore carriage return differences' (XDF_IGNORE_CR_AT_EOL)
- EOL on the last line of the file does not exist on the other side but has the same content
libxdiff assumes that the last line is not different. However, it is not compatible with WinMerge. So I correct as there is a difference.
i1++;
i2++;
}
+ int has_eol1 = s1 > 0 && is_eol(l1 + s1 - 1, l1 + s1);
+ int has_eol2 = s2 > 0 && is_eol(l2 + s2 - 1, l2 + s2);
return (ends_with_optional_cr(l1, s1, i1) &&
- ends_with_optional_cr(l2, s2, i2));
+ ends_with_optional_cr(l2, s2, i2)) &&
+ ((has_eol1 && has_eol2) || (!has_eol1 && !has_eol2));
}
/*