Fix terrible python goof in clang-format.py which broke my vim

integration.

Nothing is more important in life than clang-format integration with
vim. ;]

llvm-svn: 239098
This commit is contained in:
Chandler Carruth 2015-06-04 21:23:07 +00:00
parent f99fe00afc
commit c925a905f7
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def main():
for op in reversed(sequence.get_opcodes()):
if op[0] is not 'equal':
vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
if output['IncompleteFormat']:
if output.get('IncompleteFormat'):
print 'clang-format: incomplete (syntax errors)'
vim.command('goto %d' % (output['Cursor'] + 1))