Skip to content

Commit

Permalink
Merge pull request #92 from sighingnow/master
Browse files Browse the repository at this point in the history
Support specific parameters in "g:clang_format_style".
  • Loading branch information
justmao945 committed Mar 28, 2016
2 parents 76d9e7d + 17b9f82 commit 739c9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/clang.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ endf
" Call clang-format to format source code
func! s:ClangFormat()
let l:view = winsaveview()
let l:command = printf("%s -style=%s ", g:clang_format_exec, g:clang_format_style)
let l:command = printf("%s -style=\"%s\" ", g:clang_format_exec, g:clang_format_style)
silent execute '%!'. l:command
call winrestview(l:view)
endf
Expand Down

0 comments on commit 739c9d4

Please sign in to comment.