From e00ea5d38044a525bfccf8bacd8384788d7ca97e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 13 Jan 2009 22:48:06 +0100 Subject: [PATCH] Blame: do to not reload the diff view for same commits --- tig.c | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- 2.30.2