summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitk2
1 files changed, 2 insertions, 0 deletions
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