From b8a640ee1aa45e0f874664417db8a05d5a0d48b0 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Mon, 8 Sep 2008 11:28:16 +0400 Subject: [PATCH] gitk: Fix a bug in collapsing deeply nested trees To reproduce: expand a tree like this, then collapse A: +A +B C D The result is: -A C D I.e. sub-nodes expanded from the last sub-node of the item being collapsed are not removed. Signed-off-by: Alexander Gavrilov Signed-off-by: Paul Mackerras --- gitk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitk b/gitk index e61e68b88a..b097230079 100755 --- a/gitk +++ b/gitk @@ -2706,7 +2706,7 @@ proc treeopendir {w dir} { $w insert e:$ix $e [highlight_tag $de] } } - $w mark gravity e:$ix left + $w mark gravity e:$ix right $w conf -state disabled set treediropen($dir) 1 set top [lindex [split [$w index @0,0] .] 0] -- 2.11.4.GIT