git-gui: Don't show blame tooltips that we have no data for
If we haven't yet loaded any commit information for a given line but our tooltip timer fired and tried to draw the tooltip we shouldn't; there is nothing to show. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jul 19, 2007 at 01:45 UTC
a42289621e372763d5ef34067d5e38a0872fab15
1 file changed
+5
lib/blame.tcl
+5
@@ -879,6 +879,11 @@ method _open_tooltip {cur_w} {
879
set org [lindex $amov_data $lno]
880
}
881
882
+ if {$dat eq {}} {
883
+ _hide_tooltip $this
884
+ return
885
+ }
886
+
887
set cmit [lindex $dat 0]
888
set tooltip_commit [list $cmit]
889