Skip to content

Commit 19291de

Browse files
committed
big refactoring
1 parent c5475f1 commit 19291de

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugin/autocmd.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ augroup python
1010
au!
1111
" Show error message under cursor
1212
" for visual and insert mode
13-
au CursorMoved * call python#utils#set_python_error()
14-
au BufEnter,QuickFixCmdPost * call python#utils#highlight_python_error()
13+
if !empty(g:python_compiler_highlight_errors)
14+
au CursorMoved * call python#utils#set_python_error()
15+
au BufEnter,QuickFixCmdPost * call python#utils#highlight_python_error()
16+
endif
1517

16-
au QuickFixCmdPost * call python#utils#fix_qflist()
18+
if !empty(g:python_fixqflist)
19+
au QuickFixCmdPost * call python#utils#fix_qflist()
20+
endif
1721

1822
augroup end

0 commit comments

Comments
 (0)