{"thread":{"id":"15420","subject":"[PATCH (GITK FIX)] gitk: Fix a bug in collapsing deeply nested trees.","startedAt":"2008-09-08T07:28:16Z","lastAt":"2008-09-08T07:28:16Z","messageCount":1,"participants":["Alexander Gavrilov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"90055","messageId":"200809081128.16215.angavrilov@gmail.com","threadId":"15420","inReplyTo":null,"subject":"[PATCH (GITK FIX)] gitk: Fix a bug in collapsing deeply nested trees.","fromName":"Alexander Gavrilov","fromEmail":"angavrilov@gmail.com","sentAt":"2008-09-08T07:28:16Z","receivedAt":"2008-09-08T07:28:16Z","isPatch":true,"sender":{"key":"angavrilov@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42666?v=4"},"body":"To reproduce: expand a tree like this, then collapse A:\n\n+A\n +B\n   C\n   D\n\nThe result is:\n\n-A\n   C\n   D\n\nI.e. sub-nodes expanded from the last sub-node of the item\nbeing collapsed are not removed.\n\nSigned-off-by: Alexander Gavrilov <angavrilov@gmail.com>\n---\n gitk |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex dbc6064..989a3f7 100755\n--- a/gitk\n+++ b/gitk\n@@ -2705,7 +2705,7 @@ proc treeopendir {w dir} {\n \t    $w insert e:$ix $e [highlight_tag $de]\n \t}\n     }\n-    $w mark gravity e:$ix left\n+    $w mark gravity e:$ix right\n     $w conf -state disabled\n     set treediropen($dir) 1\n     set top [lindex [split [$w index @0,0] .] 0]\n-- \n1.6.0.20.g6148bc\n"}]}