From ce837c9de5d67919437e1c05789b23c3aca95d4c Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 4 Oct 2012 22:50:16 +0200 Subject: [PATCH] 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 Signed-off-by: Paul Mackerras --- gitk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitk b/gitk index 54cffde72..a569c0d4b 100755 --- a/gitk +++ b/gitk @@ -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 -- 2.26.2