Skip to content

Commit 3485b69

Browse files
committed
Try to fix python-mode#329
1 parent a3d5e50 commit 3485b69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/pymode.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ fun! pymode#quickfix_open(onlyRecognized, maxHeight, minHeight, jumpError) "{{{
4747
let numErrors = len(filter(getqflist(), 'v:val.valid'))
4848
let numOthers = len(getqflist()) - numErrors
4949
if numErrors > 0 || (!a:onlyRecognized && numOthers > 0)
50+
let num = winnr()
5051
botright copen
5152
exe max([min([line("$"), a:maxHeight]), a:minHeight]) . "wincmd _"
5253
if a:jumpError
5354
cc
54-
else
55+
elseif num != winnr()
5556
wincmd p
5657
endif
5758
else

0 commit comments

Comments
 (0)