clang-format: Fix vim integration if g:clang_format_binary doesn't exist

llvm-svn: 221254
This commit is contained in:
Daniel Jasper 2014-11-04 10:40:26 +00:00
parent ec69a4ece1
commit 20bc4b0f5c
1 changed files with 1 additions and 1 deletions

View File

@ -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