Skip to content

Commit a23712e

Browse files
committed
Fix linters
1 parent 14be21f commit a23712e

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

autoload/pymode.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ fun! pymode#QuickfixOpen(onlyRecognized, holdCursor, maxHeight, minHeight, jumpE
2828
endif
2929
endfunction "}}}
3030

31+
3132
fun! pymode#PlaceSigns() "{{{
3233
sign unplace *
3334
for item in filter(getqflist(), 'v:val.bufnr != ""')
3435
execute printf('silent! sign place 1 line=%d name=%s buffer=%d', item.lnum, item.type, item.bufnr)
3536
endfor
3637
endfunction "}}}
3738

39+
3840
fun! pymode#CheckProgram(name, append) "{{{
3941
let name = 'g:' . a:name
4042
if pymode#Default(name, a:name)
@@ -74,6 +76,7 @@ fun! pymode#ShowCommand(cmd) "{{{
7476
wincmd p
7577
endfunction "}}}
7678

79+
7780
" DESC: Show wide message
7881
fun! pymode#WideMessage(msg) "{{{
7982
let x=&ruler | let y=&showcmd

autoload/pymode/lint.vim

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
function! pymode#lint#Check()
2+
3+
if !g:pymode_lint | return | endif
4+
25
let b:errors = {}
36

4-
if g:pymode_lint == 0 | return | endif
57
if &modifiable && &modified
68
try
79
write
@@ -19,19 +21,19 @@ function! pymode#lint#Check()
1921

2022
let g:qf_list = b:qf_list
2123

24+
if g:pymode_lint_message
25+
for v in b:qf_list
26+
let b:errors[v['lnum']] = v['text']
27+
endfor
28+
call pymode#lint#show_errormessage()
29+
endif
30+
2231
if g:pymode_lint_cwindow
2332
call pymode#QuickfixOpen(0, g:pymode_lint_hold, g:pymode_lint_maxheight, g:pymode_lint_minheight, g:pymode_lint_jump)
2433
endif
2534

2635
endif
2736

28-
if g:pymode_lint_message
29-
for v in b:qf_list
30-
let b:errors[v['lnum']] = v['text']
31-
endfor
32-
call pymode#lint#show_errormessage()
33-
endif
34-
3537
if g:pymode_lint_signs
3638
call pymode#PlaceSigns()
3739
endif

ftplugin/python/pymode.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ if g:pymode_lint
9090

9191
au CursorHold <buffer> call pymode#lint#show_errormessage()
9292
au CursorMoved <buffer> call pymode#lint#show_errormessage()
93+
9394
endif
9495

9596
endif

0 commit comments

Comments
 (0)