Skip to content

Commit 9419307

Browse files
angavrilovspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent bd45bd9 commit 9419307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/search.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ constructor new {i_w i_text args} {
3535

3636
trace add variable searchstring write [cb _incrsearch_cb]
3737

38-
bind $w <Destroy> [cb delete_this]
38+
bind $w <Destroy> [list delete_this $this]
3939
return $this
4040
}
4141

0 commit comments

Comments
 (0)