From: Jonas Fonseca Date: Tue, 13 Jan 2009 21:48:06 +0000 (+0100) Subject: Blame: do to not reload the diff view for same commits X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e00ea5d;p=tig.git Blame: do to not reload the diff view for same commits --- diff --git a/tig.c b/tig.c index 3189f44..5f480cb 100644 --- a/tig.c +++ b/tig.c @@ -3779,6 +3779,10 @@ blame_request(struct view *view, enum request request, struct line *line) break; } + if (view_is_displayed(VIEW(REQ_VIEW_DIFF)) && + !strcmp(blame->commit->id, VIEW(REQ_VIEW_DIFF)->ref)) + break; + if (!strcmp(blame->commit->id, NULL_ID)) { char path[SIZEOF_STR];