Fix matching of the "first line deleted" sign

Closes #112.
This commit is contained in:
Marco Hinz 2014-01-15 09:45:43 +01:00
parent 159b171e4a
commit 0e66e0963f
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ function! sy#highlight#line_enable() abort
execute 'sign define SignifyChangeDelete9 text='. s:sign_change .'9 texthl=SignifySignChange linehl=SignifyLineChange'
execute 'sign define SignifyChangeDeleteMore text='. s:sign_change .'> texthl=SignifySignChange linehl=SignifyLineChange'
execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line ' texthl=SignifySignDelete linehl=SignifyLineDelete'
execute 'sign define SignifyRemoveFirstLine text='. s:sign_delete_first_line ' texthl=SignifySignDelete linehl=SignifyLineDelete'
let g:signify_line_highlight = 1
endfunction
@ -55,7 +55,7 @@ function! sy#highlight#line_disable() abort
execute 'sign define SignifyChangeDelete9 text='. s:sign_change .'9 texthl=SignifySignChange linehl='
execute 'sign define SignifyChangeDeleteMore text='. s:sign_change .'> texthl=SignifySignChange linehl='
execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line ' texthl=SignifySignDelete linehl='
execute 'sign define SignifyRemoveFirstLine text='. s:sign_delete_first_line ' texthl=SignifySignDelete linehl='
let g:signify_line_highlight = 0
endfunction

View File

@ -217,7 +217,7 @@ function! sy#repo#process_diff(diff) abort
if new_line == 0
call add(signs, {
\ 'type': 'SignifyDeleteFirstLine',
\ 'type': 'SignifyRemoveFirstLine',
\ 'lnum': 1 })
elseif old_count <= 99
call add(signs, {