From: Alexander Gavrilov Date: Thu, 13 Nov 2008 18:52:52 +0000 (+0300) Subject: git-gui: Fix the search bar destruction handler. X-Git-Tag: v1.6.1-rc1~3^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=941930732fc0bbffbd19e9fa09fe00bc1512a3a7;p=git.git 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 --- 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 }