aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2008-09-08 11:28:16 +0400
committerPaul Mackerras <paulus@samba.org>2008-09-21 18:13:10 -0500
commitb8a640ee1aa45e0f874664417db8a05d5a0d48b0 (patch)
treea5f55a3d72bbdb2aed38c03d342de5c0955a577b
parentd277e89f87fda01daa1e1a35fc1f7118678faa1f (diff)
downloadgit-b8a640ee1aa45e0f874664417db8a05d5a0d48b0.tar.gz
git-b8a640ee1aa45e0f874664417db8a05d5a0d48b0.tar.xz
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>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
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]