diff --git a/routers/repo/pull.go b/routers/repo/pull.go index faf3b7899..49f25260c 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -626,6 +626,7 @@ func CompareAndPullRequest(ctx *context.Context) { return } + ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split" ctx.HTML(200, COMPARE_PULL) }