diff options
| author | Alexander Ogorodov <bnfour@bnfour.net> | 2025-03-18 13:27:04 +0700 |
|---|---|---|
| committer | Bn4 <bnfour@bnfour.net> | 2025-05-15 17:24:30 +0700 |
| commit | 9cad4a9dc0358c959db42186eb40736e5fb5e788 (patch) | |
| tree | f2a2c45bf5bef5b318ff56b576409093ca1c6c2f | |
| parent | Merge branch 'pks-meson-support' of https://github.com/pks-t/gitk (diff) | |
| download | git-9cad4a9dc0358c959db42186eb40736e5fb5e788.tar.gz git-9cad4a9dc0358c959db42186eb40736e5fb5e788.zip | |
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 <bnfour@bnfour.net>
Diffstat (limited to '')
| -rwxr-xr-x | gitk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7139,7 +7139,7 @@ proc findselectline {l} { # mark the bits of a headline or author that match a find string proc markmatches {canv l str tag matches font row} { - global selectedline + global selectedline foundbgcolor set bbox [$canv bbox $tag] set x0 [lindex $bbox 0] @@ -7153,7 +7153,7 @@ proc markmatches {canv l str tag matches font row} { set xlen [font measure $font [string range $str 0 [expr {$end}]]] set t [$canv create rect [expr {$x0+$xoff}] $y0 \ [expr {$x0+$xlen+2}] $y1 \ - -outline {} -tags [list match$l matches] -fill yellow] + -outline {} -tags [list match$l matches] -fill $foundbgcolor] $canv lower $t if {$row == $selectedline} { $canv raise $t secsel |
