From c203080645936e73b2124040bc963386eeb44f5e Mon Sep 17 00:00:00 2001 From: Chiel ten Brinke Date: Mon, 10 Dec 2018 10:13:07 +0100 Subject: [PATCH] Fix code flow issue in python 2 code path. --- plugin/autoformat.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index c08c4d3..fd00533 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -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.