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 <angavrilov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Alexander Gavrilov committed
Sep 8, 2008 at 11:28 UTC
b8a640ee1aa45e0f874664417db8a05d5a0d48b0
1 file changed
+1
-1
gitk
+1
-1
@@ -2706,7 +2706,7 @@ proc treeopendir {w dir} {
2706
$w insert e:$ix $e [highlight_tag $de]
2707
}
2708
}
2709
- $w mark gravity e:$ix left
2709
+ $w mark gravity e:$ix right
2710
$w conf -state disabled
2711
set treediropen($dir) 1
2712
set top [lindex [split [$w index @0,0] .] 0]