diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2012-10-04 22:50:16 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2012-10-22 09:24:46 +1100 |
commit | ce837c9de5d67919437e1c05789b23c3aca95d4c (patch) | |
tree | 2d3593e4e7c7c5d46a5067f42be0ec8a6e3ad059 | |
parent | 62e9ac5edfd7d9f24482ce767eec4b1ac96db4a4 (diff) | |
download | git-ce837c9de5d67919437e1c05789b23c3aca95d4c.tar.gz git-ce837c9de5d67919437e1c05789b23c3aca95d4c.tar.xz |
gitk: Fix error message when clicking on a connecting line
When clicking on the line that connects two commit nodes, gitk
would bring up an error dialog saying "can't read "cflist_top":
no such variable".
This fixes a regression that was introduced with b967135 ("gitk:
Synchronize highlighting in file view when scrolling diff").
Signed-off-by: Stefan Haller <stefan@haller-berlin.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-x | gitk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7970,6 +7970,8 @@ proc changediffdisp {} { proc highlightfile {cline} { global cflist cflist_top + if {![info exists cflist_top]} return + $cflist tag remove highlight $cflist_top.0 "$cflist_top.0 lineend" $cflist tag add highlight $cline.0 "$cline.0 lineend" $cflist see $cline.0 |