From 104cc85bbcb9d2f6b7ebff4f3740756f614100e9 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 26 Sep 2010 18:23:05 -0400 Subject: [PATCH] Improve viewing of diffs when browsing branches --- NEWS | 7 +++++++ tig.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index e4e5f58..0926f66 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,13 @@ Release notes ============= +tig master +---------- + +Bug fixes: + + - Fix opening of diffs when browsing branches. + tig-0.16.2 ---------- diff --git a/tig.c b/tig.c index 37a779c..80c4d7a 100644 --- a/tig.c +++ b/tig.c @@ -6942,6 +6942,8 @@ main_request(struct view *view, enum request request, struct line *line) switch (request) { case REQ_ENTER: + if (view_is_displayed(view) && display[0] != view) + maximize_view(view); open_view(view, REQ_VIEW_DIFF, flags); break; case REQ_REFRESH: -- 2.30.2