Fix git show-diff

This commit is contained in:
Maxime Coste 2015-01-22 21:18:59 +00:00
parent cb197f57ba
commit 3b0e9331a7

View File

@ -96,7 +96,7 @@ def -shell-params \
/^---.*/ {}
/^@@ -[0-9]+(,[0-9]+)? \+[0-9]+(,[0-9]+)? @@.*/ {
if ((x=index($3, ",")) > 0) {
line=substr($3, 2, x-1)
line=substr($3, 2, x-2)
} else {
line=substr($3, 2)
}