mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 23:34:12 +03:00
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