git-gui: Fix the search bar destruction handler.
Since delete_this is an ordinary function, it should not be passed to cb; otherwise it produces errors when blame windows are closed. Unfortunately, it is not noticeable when blame is shown in the master window, so I missed this bug. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Alexander Gavrilov committed
Nov 13, 2008 at 21:52 UTC
941930732fc0bbffbd19e9fa09fe00bc1512a3a7
1 file changed
+1
-1
lib/search.tcl
+1
-1
@@ -35,7 +35,7 @@ constructor new {i_w i_text args} {
35
36
trace add variable searchstring write [cb _incrsearch_cb]
37
38
- bind $w <Destroy> [cb delete_this]
38
+ bind $w <Destroy> [list delete_this $this]
39
return $this
40
}
41