vim-autoformat/plugin
lethal-guitar a7009a9688 Correctly remove newline at end of file on Windows
The code for removing a newline at the end of a file was assuming that each
`eol` in `possible_eols` would be 1 character in length. This assumption
doesn't hold on Windows, where a newline is 2 characters long (`\r\n`). As a
result, auto-formatting files that have a Windows-style line ending would
result in the file's last line being terminated by `\r` (the full EOL cut in
half, essentially).

With this patch, we not only check that the last character of `stdoutdata`
matches the candidate `eol`, but instead check the full sequence of
characters depending on the length of `eol`.
2019-07-08 20:57:07 +02:00
..
autoformat.vim Correctly remove newline at end of file on Windows 2019-07-08 20:57:07 +02:00
defaults.vim Fix incorrect html-beautify command 2018-12-19 12:58:55 +01:00
utils.vim Minor rewording. 2017-10-05 11:17:03 +02:00