From 9fbbd28f0bf6c5e0d401d3ba21cf65d3f43b0019 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 24 May 2006 16:56:52 +0200 Subject: [PATCH] Rearrange pager_enter logic --- tig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tig.c b/tig.c index 7fca9a8..b0f5382 100644 --- a/tig.c +++ b/tig.c @@ -1593,9 +1593,9 @@ pager_enter(struct view *view, struct line *line) { int split = 0; - if ((view == VIEW(REQ_VIEW_LOG) || - view == VIEW(REQ_VIEW_PAGER)) && - line->type == LINE_COMMIT) { + if (line->type == LINE_COMMIT && + (view == VIEW(REQ_VIEW_LOG) || + view == VIEW(REQ_VIEW_PAGER))) { open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT); split = 1; } -- 2.32.0.93.g670b81a890