]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.0.0227: crash with ff=dos when first line in file has no CR v8.0.0227
authorBram Moolenaar <Bram@vim.org>
Tue, 24 Jan 2017 14:46:48 +0000 (15:46 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 24 Jan 2017 14:46:48 +0000 (15:46 +0100)
commit2aa5f696b91a51f29873e340de4bdc182e1e8dd4
tree1249e92e01a82836352dcf6be011b0fcdabd7d40
parent1695f99d08076d77ed3015f1edf09a668a4d449a
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.
src/fileio.c
src/testdir/test_fileformat.vim
src/version.c