From: Stefan Haller Date: Thu, 04 Oct 2012 20:50:16 GMT Subject: [PATCH 1/2] gitk: Fix error message when clicking on a connecting line Message-ID: <1349383817-14457-2-git-send-email-stefan@haller-berlin.de> In-Reply-To: <1349383817-14457-1-git-send-email-stefan@haller-berlin.de> 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 --- gitk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitk b/gitk index 379582a..8935284 100755 --- a/gitk +++ b/gitk @@ -7958,6 +7958,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 -- 1.8.0.rc0.36.gef0f079