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-Tag: v1.6.1-rc1~2^2~29 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b8a640ee1aa45e0f874664417db8a05d5a0d48b0;p=git.git 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 e61e68b88..b09723007 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]