aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-05-26 22:22:48 +1000
committerPaul Mackerras <paulus@samba.org>2006-05-26 22:22:48 +1000
commit5864c08f897425ff186fcab00ecc81166e783bd5 (patch)
treeda726089b8d3bbfab6787e3673938e2972c6db02 /gitk
parent60f7a7dc4904ba4baab44b70e2675a01e6172f54 (diff)
downloadgit-5864c08f897425ff186fcab00ecc81166e783bd5.tar.gz
git-5864c08f897425ff186fcab00ecc81166e783bd5.tar.xz
gitk: Fix bug in highlight stuff when no line is selected
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk5
1 files changed, 2 insertions, 3 deletions
diff --git a/gitk b/gitk
index c90ef993c..317d90d95 100755
--- a/gitk
+++ b/gitk
@@ -1660,7 +1660,7 @@ proc bolden {row font} {
global canv linehtag selectedline
$canv itemconf $linehtag($row) -font $font
- if {$row == $selectedline} {
+ if {[info exists selectedline] && $row == $selectedline} {
$canv delete secsel
set t [eval $canv create rect [$canv bbox $linehtag($row)] \
-outline {{}} -tags secsel \
@@ -1673,7 +1673,7 @@ proc bolden_name {row font} {
global canv2 linentag selectedline
$canv2 itemconf $linentag($row) -font $font
- if {$row == $selectedline} {
+ if {[info exists selectedline] && $row == $selectedline} {
$canv2 delete secsel
set t [eval $canv2 create rect [$canv2 bbox $linentag($row)] \
-outline {{}} -tags secsel \
@@ -1715,7 +1715,6 @@ proc addvhighlight {n} {
proc delvhighlight {} {
global hlview vhighlights
- global selectedline
if {![info exists hlview]} return
unset hlview