From 941930732fc0bbffbd19e9fa09fe00bc1512a3a7 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 13 Nov 2008 21:52:52 +0300 Subject: [PATCH] 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 Signed-off-by: Shawn O. Pearce --- lib/search.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/search.tcl b/lib/search.tcl index 32c8656fc..b371e9a30 100644 --- a/lib/search.tcl +++ b/lib/search.tcl @@ -35,7 +35,7 @@ constructor new {i_w i_text args} { trace add variable searchstring write [cb _incrsearch_cb] - bind $w [cb delete_this] + bind $w [list delete_this $this] return $this } -- 2.26.2