summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-19 05:45:42 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-07-19 05:45:42 (GMT)
commita42289621e372763d5ef34067d5e38a0872fab15 (patch)
treed27131a04d23bf86fa466eba0a5c2aecbaea40fd /lib
parentc4638f662c9ba5f4150ab97dbbf0e540392aad55 (diff)
downloadgit-a42289621e372763d5ef34067d5e38a0872fab15.zip
git-a42289621e372763d5ef34067d5e38a0872fab15.tar.gz
git-a42289621e372763d5ef34067d5e38a0872fab15.tar.bz2
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/blame.tcl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 4da60ac..9607284 100644
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
@@ -879,6 +879,11 @@ method _open_tooltip {cur_w} {
set org [lindex $amov_data $lno]
}
+ if {$dat eq {}} {
+ _hide_tooltip $this
+ return
+ }
+
set cmit [lindex $dat 0]
set tooltip_commit [list $cmit]