Merge pull request #76 from jamessan/patch-1

This commit is contained in:
Marco Hinz 2013-09-27 01:34:19 -07:00
commit 05bc548ecc

View File

@ -236,15 +236,15 @@ function! sy#repo#process_diff(path, diff) abort
if old_count > new_count
let modified += new_count
let deleted += (old_count - new_count)
let removed = (old_count - new_count)
let deleted += removed
let offset = 0
while offset < (new_count - 1)
call add(signs, { 'type': 'SignifyChange', 'lnum': new_line + offset, 'path': a:path })
let offset += 1
endwhile
let deleted += (old_count - new_count)
call add(signs, { 'type': (deleted > 9) ? 'SignifyChangeDeleteMore' : 'SignifyChangeDelete'. deleted, 'lnum': new_line, 'path': a:path })
call add(signs, { 'type': (removed > 9) ? 'SignifyChangeDeleteMore' : 'SignifyChangeDelete'. deleted, 'lnum': new_line, 'path': a:path })
" lines changed and added: