diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py index 03493560f43b..a79205a6dfe8 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/tools/clang-format/clang-format.py @@ -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