Skip to content

Commit 9cad4a9

Browse files
committed
gitk: do not hard-code color of search results in commit list
A global variable exists that holds the color name used to highlight search results everywhere, except that in the commit list the color is still hard-coded to "yellow". Use the global variable there as well. Signed-off-by: Alexander Ogorodov <[email protected]>
1 parent 4a6cc6a commit 9cad4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7139,7 +7139,7 @@ proc findselectline {l} {
71397139
71407140
# mark the bits of a headline or author that match a find string
71417141
proc markmatches {canv l str tag matches font row} {
7142-
global selectedline
7142+
global selectedline foundbgcolor
71437143
71447144
set bbox [$canv bbox $tag]
71457145
set x0 [lindex $bbox 0]
@@ -7153,7 +7153,7 @@ proc markmatches {canv l str tag matches font row} {
71537153
set xlen [font measure $font [string range $str 0 [expr {$end}]]]
71547154
set t [$canv create rect [expr {$x0+$xoff}] $y0 \
71557155
[expr {$x0+$xlen+2}] $y1 \
7156-
-outline {} -tags [list match$l matches] -fill yellow]
7156+
-outline {} -tags [list match$l matches] -fill $foundbgcolor]
71577157
$canv lower $t
71587158
if {$row == $selectedline} {
71597159
$canv raise $t secsel

0 commit comments

Comments
 (0)