Skip to content

Commit 157cfe8

Browse files
authored
Merge pull request #78 from xy24/master
Don't delete legitimate newline(s) at the beginning of the file
2 parents 8ff1660 + 5975297 commit 157cfe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/clang_format.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function! clang_format#replace(line1, line2, ...) abort
236236
endif
237237

238238
let winview = winsaveview()
239-
let splitted = split(formatted, '\n')
239+
let splitted = split(formatted, '\n', 1)
240240

241241
silent! undojoin
242242
if line('$') > len(splitted)

0 commit comments

Comments
 (0)