From 98e324a281e6ad38786fbb54ac70819db80a5aa7 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sun, 7 Apr 2013 14:59:33 +0200 Subject: [PATCH] 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. --- doc/signify.txt | 1 + plugin/signify.vim | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/signify.txt b/doc/signify.txt index 1876e50..bbf0383 100644 --- a/doc/signify.txt +++ b/doc/signify.txt @@ -275,6 +275,7 @@ fritzophrenic (fritzophrenic) Morgan Fouesneau (mfouesneau) Zhao Cai (zhaocai) Otto Modinos (otommod) +Ryan Kois (kid-icarus) ============================================================================== diff --git a/plugin/signify.vim b/plugin/signify.vim index 1c0916d..34a1402 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -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