From: Jonas Fonseca Date: Wed, 24 May 2006 14:56:52 +0000 (+0200) Subject: Rearrange pager_enter logic X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9fbbd28f0bf6c5e0d401d3ba21cf65d3f43b0019;p=tig.git Rearrange pager_enter logic --- 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; }