From: Shawn O. Pearce Date: Wed, 8 Nov 2006 03:09:55 +0000 (-0500) Subject: git-gui: Bug fix for bad variable reference in display_file. X-Git-Tag: gitgui-0.6.0~271 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e4ee9af4946557370cfe18efdfa46c265a10639f;p=git.git git-gui: Bug fix for bad variable reference in display_file. When a file jumps between the file lists due to its state changing we crashed thanks to a stale variable reference within the procedure as we tried to setup the new icon. Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui b/git-gui index d405008d2..515cbb9df 100755 --- a/git-gui +++ b/git-gui @@ -819,7 +819,7 @@ proc display_file {path state} { $new_w image create $lno.0 \ -align center -padx 5 -pady 1 \ -name [lindex $s 1] \ - -image [mapicon $m $path] + -image $new_icon $new_w insert $lno.1 "$path\n" $new_w conf -state disabled } elseif {$new_icon != [mapicon $old_m $path]} {