Show sign on first line when line(s) deleted at start of file.

This commit is contained in:
Andy Stewart
2014-05-30 17:01:20 +02:00
parent 833b8a439f
commit 0fd18d66f6
7 changed files with 22 additions and 12 deletions

View File

@@ -142,7 +142,11 @@ function! diff#process_added(modifications, from_count, to_count, to_line)
endfunction
function! diff#process_removed(modifications, from_count, to_count, to_line)
call add(a:modifications, [a:to_line, 'removed'])
if a:to_line == 0
call add(a:modifications, [1, 'removed_first_line'])
else
call add(a:modifications, [0, 'removed'])
endif
endfunction
function! diff#process_modified(modifications, from_count, to_count, to_line)