From: RĂ©mi Verschelde Date: Sun, 5 Apr 2020 05:02:57 +0000 (+0200) Subject: Fix --diff output when encountering EOF (#1328) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/959848c17639bfc646128f6b582c5858164a5001?hp=959848c17639bfc646128f6b582c5858164a5001 Fix --diff output when encountering EOF (#1328) `split("\n")` includes a final empty element `""` if the final line ends with `\n` (as it should for POSIX-compliant text files), which then became an extra `"\n"`. `splitlines()` solves that, but there's a caveat, as it will split on other types of line breaks too (like `\r`), which may not be desired. Fixes #526. ---