gitk: Fix a bug in collapsing deeply nested trees
authorAlexander Gavrilov <angavrilov@gmail.com>
Mon, 8 Sep 2008 07:28:16 +0000 (11:28 +0400)
committerPaul Mackerras <paulus@samba.org>
Sun, 21 Sep 2008 23:13:10 +0000 (18:13 -0500)
commitb8a640ee1aa45e0f874664417db8a05d5a0d48b0
treea5f55a3d72bbdb2aed38c03d342de5c0955a577b
parentd277e89f87fda01daa1e1a35fc1f7118678faa1f
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>
gitk