From f67d6bbca3bbba7a0614b7f9b8ab3c24d4a318aa Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 14 Jul 2017 17:02:45 -0400 Subject: [PATCH] repo/diff: fix line number in split view template (#4584) --- templates/repo/diff/box.tmpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 78237877d..33ce604d0 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -99,14 +99,12 @@
{{$section.ComputedInlineDiffFor $line}}
{{else}} - - {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}} +
{{if $line.LeftIdx}}{{$section.ComputedInlineDiffFor $line}}{{end}}
- - {{if $line.RightIdx}}{{$line.RightIdx}}{{end}} +
{{if $line.RightIdx}}{{$section.ComputedInlineDiffFor $line}}{{end}}