From: Alexander Gavrilov Date: Mon, 8 Sep 2008 07:28:16 +0000 (+0400) Subject: gitk: Fix a bug in collapsing deeply nested trees X-Git-Url: http://privyetmir.co.uk/gitweb?a=commitdiff_plain;h=b8a640ee1aa45e0f874664417db8a05d5a0d48b0;p=gitk 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 --- diff --git a/gitk b/gitk index e61e68b..b097230 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]