clang-format: Fix vim integration if g:clang_format_binary doesn't exist
git-svn-id: svn://svn.chromium.org/llvm-project/cfe/trunk/tools/clang-format@221254 0b72dbe1-c17f-4bc7-b9db-2b4152be0356
diff --git a/clang-format.py b/clang-format.py
index 0349356..a79205a 100644
--- a/clang-format.py
+++ b/clang-format.py
@@ -26,7 +26,7 @@
# 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