commit | 2aa5f696b91a51f29873e340de4bdc182e1e8dd4 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 24 15:46:48 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 24 15:46:48 2017 +0100 |
tree | 1249e92e01a82836352dcf6be011b0fcdabd7d40 | |
parent | 1695f99d08076d77ed3015f1edf09a668a4d449a [diff] [blame] |
patch 8.0.0227: crash with ff=dos when first line in file has no CR Problem: Crash when 'fileformat' is forced to "dos" and the first line in the file is empty and does not have a CR character. Solution: Don't check for CR before the start of the buffer.
diff --git a/src/version.c b/src/version.c index 7087f64..84dde73 100644 --- a/src/version.c +++ b/src/version.c
@@ -765,6 +765,8 @@ static int included_patches[] = { /* Add new patch number below this line */ /**/ + 227, +/**/ 226, /**/ 225,