mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
@@ -381,6 +381,10 @@ function! s:write_buffer(bufnr, file)
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if getbufvar(a:bufnr, '&endofline')
|
||||||
|
call add(bufcontents, '')
|
||||||
|
endif
|
||||||
|
|
||||||
if getbufvar(a:bufnr, '&fileformat') ==# 'dos'
|
if getbufvar(a:bufnr, '&fileformat') ==# 'dos'
|
||||||
call map(bufcontents, 'v:val."\r"')
|
call map(bufcontents, 'v:val."\r"')
|
||||||
endif
|
endif
|
||||||
@@ -394,7 +398,7 @@ function! s:write_buffer(bufnr, file)
|
|||||||
let bufcontents[0]=''.bufcontents[0]
|
let bufcontents[0]=''.bufcontents[0]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call writefile(bufcontents, a:file)
|
call writefile(bufcontents, a:file, 'b')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user