Fix code flow issue in python 2 code path.

This commit is contained in:
Chiel ten Brinke 2018-12-10 10:13:07 +01:00
parent db17ccbacb
commit c203080645

View File

@ -214,6 +214,7 @@ if stderrdata:
elif p.returncode > 0:
if verbose:
print('Formatter {} gives nonzero returncode: {}'.format(formattername, p.returncode))
vim.command('return 1')
else:
# It is not certain what kind of line endings are being used by the format program.
# Therefore we simply split on all possible eol characters.