fix sign overwriting regex

Signs (from Syntastic in this case) were overwritten, although
g:signify_sign_overwrite was set to 0, because the used regex was buggy.

Add Ryan Kois as contributor.

Closes #20.
This commit is contained in:
Marco Hinz 2013-04-07 14:59:33 +02:00
parent a9ce03c16c
commit 98e324a281
2 changed files with 3 additions and 2 deletions

View File

@ -275,6 +275,7 @@ fritzophrenic (fritzophrenic)
Morgan Fouesneau (mfouesneau)
Zhao Cai (zhaocai)
Otto Modinos (otommod)
Ryan Kois (kid-icarus)
==============================================================================

View File

@ -194,8 +194,8 @@ function! s:sign_get_others(path) abort
silent! execute 'sign place file='. a:path
redir END
for line in filter(split(signlist, '\n'), 'v:val =~ "\v^\s+\w+"')
let lnum = matchlist(line, '\v^\s+\w+\=(\d+)')[1]
for line in filter(split(signlist, '\n'), 'v:val =~ "^\\s\\+line"')
let lnum = matchlist(line, '\v^\s+line\=(\d+)')[1]
let s:other_signs_line_numbers[lnum] = 1
endfor
endfunction