Skip to content

Commit a5ebe67

Browse files
committed
some fixes
1 parent 6111a59 commit a5ebe67

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugin/autocmd.vim

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ if !exists('g:python_compiler_highlight_errors')
22
let g:python_compiler_highlight_errors = 0
33
endif
44

5-
if !exists('g:python_fixqflist')
5+
if !exists('g:python_compiler_fixqflist')
66
let g:python_compiler_fixqflist = 1
77
endif
88

99
augroup python
1010
au!
11-
" Show error message under cursor
12-
" for visual and insert mode
13-
if !empty('g:python_compiler_highlight_errors')
11+
if g:python_compiler_highlight_errors == 1
1412
au CursorMoved * call python#utils#set_python_error()
1513
au BufEnter,QuickFixCmdPost * call python#utils#highlight_python_error()
1614
endif
1715

18-
if !empty('g:python_fixqflist')
16+
if g:python_compiler_fixqflist == 1
1917
au QuickFixCmdPost * call python#utils#fix_qflist()
2018
endif
2119

0 commit comments

Comments
 (0)