Skip to content

Commit 5975297

Browse files
committed
Don't delete legitimate newline(s) at the beginning of the file
1 parent 8ff1660 commit 5975297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/clang_format.vim

Lines changed: 1 addition & 1 deletion
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)