forked from OSchip/llvm-project
clang-format: Fix vim integration if g:clang_format_binary doesn't exist
llvm-svn: 221254
This commit is contained in:
parent
ec69a4ece1
commit
20bc4b0f5c
|
@ -26,7 +26,7 @@ import vim
|
|||
# set g:clang_format_path to the path to clang-format if it is not on the path
|
||||
# Change this to the full path if clang-format is not on the path.
|
||||
binary = 'clang-format'
|
||||
if vim.eval('exists("g:clang_format_path")'):
|
||||
if vim.eval('exists("g:clang_format_path")') == "1":
|
||||
binary = vim.eval('g:clang_format_path')
|
||||
|
||||
# Change this to format according to other formatting styles. See the output of
|
||||
|
|
Loading…
Reference in New Issue