Skip to content

Commit b8a640e

Browse files
angavrilovpaulusmack
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent d277e89 commit b8a640e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ proc treeopendir {w dir} {
27062706
$w insert e:$ix $e [highlight_tag $de]
27072707
}
27082708
}
2709-
$w mark gravity e:$ix left
2709+
$w mark gravity e:$ix right
27102710
$w conf -state disabled
27112711
set treediropen($dir) 1
27122712
set top [lindex [split [$w index @0,0] .] 0]

0 commit comments

Comments
 (0)