Fix git show-diff
This commit is contained in:
parent
cb197f57ba
commit
3b0e9331a7
|
@ -96,7 +96,7 @@ def -shell-params \
|
||||||
/^---.*/ {}
|
/^---.*/ {}
|
||||||
/^@@ -[0-9]+(,[0-9]+)? \+[0-9]+(,[0-9]+)? @@.*/ {
|
/^@@ -[0-9]+(,[0-9]+)? \+[0-9]+(,[0-9]+)? @@.*/ {
|
||||||
if ((x=index($3, ",")) > 0) {
|
if ((x=index($3, ",")) > 0) {
|
||||||
line=substr($3, 2, x-1)
|
line=substr($3, 2, x-2)
|
||||||
} else {
|
} else {
|
||||||
line=substr($3, 2)
|
line=substr($3, 2)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user