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:
parent
f99fe00afc
commit
c925a905f7
|
@ -85,7 +85,7 @@ def main():
|
||||||
for op in reversed(sequence.get_opcodes()):
|
for op in reversed(sequence.get_opcodes()):
|
||||||
if op[0] is not 'equal':
|
if op[0] is not 'equal':
|
||||||
vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
|
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)'
|
print 'clang-format: incomplete (syntax errors)'
|
||||||
vim.command('goto %d' % (output['Cursor'] + 1))
|
vim.command('goto %d' % (output['Cursor'] + 1))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue