From: Stefan Haller Date: Thu, 4 Oct 2012 20:50:16 +0000 (+0200) Subject: gitk: Fix error message when clicking on a connecting line X-Git-Tag: v1.8.2-rc0~96^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ce837c9de5d67919437e1c05789b23c3aca95d4c 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 --- diff --git a/gitk b/gitk index 54cffde721..a569c0d4b8 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