mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
If fileformat is dos and eol is not set, then a '\r' (but without '\n') will be written to the last line of temporary buffer file, which will confuse git and make git think all lines are modified. Fix it by adding 'r' to all lines except the last one if fileformat is dos and eol is not set. Suggested-by: Andy Stewart <boss@airbladesoftware.com> Signed-off-by: Adam Tao <tcx4c70@gmail.com>