Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions autoload/pymode.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,18 @@ fun! pymode#QuickfixOpen(onlyRecognized, holdCursor, maxHeight, minHeight, jumpE
endif
endfunction "}}}

fun! pymode#RemoveSigns() "{{{
if has('signs')
for item in filter(getqflist(), 'v:val.bufnr != ""')
execute printf('silent! sign unplace 1 buffer=%d', item.bufnr)
endfor
endif
endfunction "}}}

fun! pymode#PlaceSigns() "{{{
" DESC: Place error signs
"
if has('signs')
sign unplace *

if !pymode#Default("g:pymode_lint_signs_always_visible", 0) || g:pymode_lint_signs_always_visible
call RopeShowSignsRulerIfNeeded()
endif
Expand Down
4 changes: 4 additions & 0 deletions autoload/pymode/lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ endfunction " }}}
fun! pymode#lint#Parse()
" DESC: Parse result of code checking.
"
if g:pymode_lint_signs
call pymode#RemoveSigns()
endif

call setqflist(g:qf_list, 'r')

if g:pymode_lint_signs
Expand Down