Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Fix bug in highlight stuff when no line is selected
author
Paul Mackerras
<paulus@samba.org>
Fri, 26 May 2006 12:22:48 +0000
(22:22 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Fri, 26 May 2006 12:22:48 +0000
(22:22 +1000)
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
60f7a7d
)
diff --git
a/gitk
b/gitk
index c90ef993c518e7079cbda3f11df258c1d7f0a28b..317d90d954010102ea0b4eee45da2cca8e3832cd 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-1660,7
+1660,7
@@
proc bolden {row font} {
global canv linehtag selectedline
$canv itemconf $linehtag($row) -font $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 \
$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
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 \
$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
proc delvhighlight {} {
global hlview vhighlights
- global selectedline
if {![info exists hlview]} return
unset hlview
if {![info exists hlview]} return
unset hlview