Skip to content

Commit 6c43ae1

Browse files
committed
Fix signs
1 parent 90fb341 commit 6c43ae1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

autoload/pymode.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,19 @@ fun! pymode#PlaceSigns(bnum) "{{{
5454
" DESC: Place error signs
5555
"
5656
if has('signs')
57-
" TODO: Create pymode sign namespace
58-
execute "sign unplace buffer=".a:bnum
57+
call pymode#Default('b:pymode_signs', [])
58+
59+
for item in b:pymode_signs
60+
execute printf('sign unplace %d buffer=%d', item.lnum, item.bufnr)
61+
endfor
62+
let b:pymode_signs = []
5963

6064
if !pymode#Default("g:pymode_lint_signs_always_visible", 0) || g:pymode_lint_signs_always_visible
6165
call RopeShowSignsRulerIfNeeded()
6266
endif
6367

6468
for item in filter(getqflist(), 'v:val.bufnr != ""')
69+
call add(b:pymode_signs, item)
6570
execute printf('sign place %d line=%d name=%s buffer=%d', item.lnum, item.lnum, "Pymode".item.type, item.bufnr)
6671
endfor
6772

0 commit comments

Comments
 (0)