Skip to content

Commit 661e7b3

Browse files
committed
fix selecting entire buffer
1 parent cc9b5d8 commit 661e7b3

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
@@ -239,7 +239,7 @@ function! clang_format#replace(line1, line2, ...) abort
239239
let formatted = clang_format#format(a:line1, a:line2)
240240
if s:success(formatted)
241241
call setreg('g', formatted, 'V')
242-
silent keepjumps normal! ggVG"gp
242+
silent keepjumps normal! gg0VG"gp
243243
else
244244
call s:error_message(formatted)
245245
endif

0 commit comments

Comments
 (0)