Skip to content

Commit f53eb9b

Browse files
committed
Disable signs for VIM compiled without +signs.
1 parent c2aac67 commit f53eb9b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

autoload/pymode.vim

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ endfunction "}}}
4040
fun! pymode#PlaceSigns() "{{{
4141
" DESC: Place error signs
4242
"
43-
sign unplace *
44-
for item in filter(getqflist(), 'v:val.bufnr != ""')
45-
execute printf('silent! sign place 1 line=%d name=%s buffer=%d', item.lnum, item.type, item.bufnr)
46-
endfor
43+
if has('signs')
44+
sign unplace *
45+
for item in filter(getqflist(), 'v:val.bufnr != ""')
46+
execute printf('silent! sign place 1 line=%d name=%s buffer=%d', item.lnum, item.type, item.bufnr)
47+
endfor
48+
endif
4749
endfunction "}}}
4850

4951

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
9999
call pymode#Default("g:pymode_lint_mccabe_complexity", 8)
100100

101101
" OPTION: g:pymode_lint_signs -- bool. Place error signs
102-
if !pymode#Default("g:pymode_lint_signs", 1) || g:pymode_lint_signs
102+
if (!pymode#Default("g:pymode_lint_signs", 1) || g:pymode_lint_signs) && has('signs')
103103

104104
" DESC: Signs definition
105105
sign define W text=WW texthl=Todo

0 commit comments

Comments
 (0)