From 3b0e9331a7538ea5915ce93b50bd05d5e2183b21 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 22 Jan 2015 21:18:59 +0000 Subject: [PATCH] Fix git show-diff --- rc/git-tools.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/git-tools.kak b/rc/git-tools.kak index 3f86c453..38e85390 100644 --- a/rc/git-tools.kak +++ b/rc/git-tools.kak @@ -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) }