Skip to content

Commit 8f5e856

Browse files
committed
Merge pull request python-mode#608 from sphaugh/develop
Fix: empty output/no errors
2 parents f8ca4d2 + 12c4420 commit 8f5e856

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/pymode.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fun! pymode#quickfix_open(onlyRecognized, maxHeight, minHeight, jumpError) "{{{
5454
redraw
5555
if numOthers > 0
5656
call pymode#wide_message(printf('Quickfix: %d(+%d)', numErrors, numOthers))
57-
else
57+
elseif numErrors > 0
5858
call pymode#wide_message(printf('Quickfix: %d', numErrors))
5959
endif
6060
endfunction "}}}

pymode/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run_code():
6262
errors += [er for er in err.splitlines() if er and "<string>" not in er]
6363

6464
env.let('l:traceback', errors[2:])
65-
env.let('l:output', [s for s in output.split('\n')])
65+
env.let('l:output', [s for s in output.splitlines()])
6666

6767

6868
def __prepare_lines(line1, line2):

0 commit comments

Comments
 (0)