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

Signs aren't shown for deleted lines which aren't at the start of the
file.

This reverts commit 0fd18d66f6.
This commit is contained in:
Andy Stewart
2014-05-31 16:57:15 +02:00
parent 0fd18d66f6
commit d1e66b71f9
7 changed files with 12 additions and 22 deletions

View File

@@ -54,8 +54,7 @@ function! hunk#prev_hunk(count)
if hunk[2] < current_line
let hunk_count += 1
if hunk_count == a:count
let target = hunk[2] == 0 ? 1 : hunk[2]
execute 'normal!' target . 'G'
execute 'normal!' hunk[2] . 'G'
break
endif
endif
@@ -70,11 +69,6 @@ function! hunk#current_hunk()
let current_line = line('.')
for hunk in s:hunks
if current_line == 1 && hunk[2] == 0
let current_hunk = hunk
break
endif
if current_line >= hunk[2] && current_line < hunk[2] + (hunk[3] == 0 ? 1 : hunk[3])
let current_hunk = hunk
break