From: Daniel Jasper Date: Tue, 4 Nov 2014 10:40:26 +0000 (+0000) Subject: clang-format: Fix vim integration if g:clang_format_binary doesn't exist X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=608c1f08f76b4869516a0cbd26aea59babc616af;p=clang clang-format: Fix vim integration if g:clang_format_binary doesn't exist git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221254 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py index 03493560f4..a79205a6df 100644 --- a/tools/clang-format/clang-format.py +++ b/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