Merge pull request #76 from jamessan/patch-1
This commit is contained in:
commit
05bc548ecc
@ -236,15 +236,15 @@ function! sy#repo#process_diff(path, diff) abort
|
|||||||
|
|
||||||
if old_count > new_count
|
if old_count > new_count
|
||||||
let modified += new_count
|
let modified += new_count
|
||||||
let deleted += (old_count - new_count)
|
let removed = (old_count - new_count)
|
||||||
|
let deleted += removed
|
||||||
|
|
||||||
let offset = 0
|
let offset = 0
|
||||||
while offset < (new_count - 1)
|
while offset < (new_count - 1)
|
||||||
call add(signs, { 'type': 'SignifyChange', 'lnum': new_line + offset, 'path': a:path })
|
call add(signs, { 'type': 'SignifyChange', 'lnum': new_line + offset, 'path': a:path })
|
||||||
let offset += 1
|
let offset += 1
|
||||||
endwhile
|
endwhile
|
||||||
let deleted += (old_count - new_count)
|
call add(signs, { 'type': (removed > 9) ? 'SignifyChangeDeleteMore' : 'SignifyChangeDelete'. deleted, 'lnum': new_line, 'path': a:path })
|
||||||
call add(signs, { 'type': (deleted > 9) ? 'SignifyChangeDeleteMore' : 'SignifyChangeDelete'. deleted, 'lnum': new_line, 'path': a:path })
|
|
||||||
|
|
||||||
" lines changed and added:
|
" lines changed and added:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user