From 9eded3792d88216d21db2b1cec7917035650d843 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 18 May 2007 22:50:29 +0200 Subject: [PATCH] Fix revision graph visualization during incremental updating This caused certain commit lines in the main view to not have have a visual revision graph. The reason is that revision graph visualization requires knowledge about the parent commit. This causes a further one-off needed to be redrawn for incremental updates. --- tig.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tig.c b/tig.c index 5ff4936..5318fdd 100644 --- a/tig.c +++ b/tig.c @@ -1927,6 +1927,12 @@ update_view(struct view *view) if (redraw_from > 0) redraw_from--; + /* Since revision graph visualization requires knowledge + * about the parent commit, it causes a further one-off + * needed to be redrawn for incremental updates. */ + if (redraw_from > 0 && opt_rev_graph) + redraw_from--; + /* Incrementally draw avoids flickering. */ redraw_view_from(view, redraw_from); } -- 2.30.2