From: Jonas Fonseca Date: Sun, 26 Sep 2010 22:23:05 +0000 (-0400) Subject: Improve viewing of diffs when browsing branches X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=104cc85bbcb9d2f6b7ebff4f3740756f614100e9;p=tig.git Improve viewing of diffs when browsing branches --- 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: