Skip to content

Commit ca9b9f0

Browse files
author
Jerome Reybert
committed
Fix clang_format#replace function
During clang_format#replace_ranges conversion, a bug has been introduced in clang_format#replace function, which completly broke it. This patch aims to fix this bug.
1 parent 17634d6 commit ca9b9f0

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
@@ -272,7 +272,7 @@ function! clang_format#replace_ranges(ranges, ...) abort
272272
endfunction
273273

274274
function! clang_format#replace(line1, line2, ...) abort
275-
call call(function("clang_format#replace_ranges"), [[line1, line2]], a:000)
275+
call call(function("clang_format#replace_ranges"), [[[a:line1, a:line2]], a:000])
276276
endfunction
277277
" }}}
278278

0 commit comments

Comments
 (0)