Skip to content

Commit 38a8ffb

Browse files
authored
Merge pull request #73 from jesseduffield/improve-contrast-for-search-results
Use black as the foreground color for highlighted search results
2 parents 5935496 + f7d5bf1 commit 38a8ffb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

view.go

+1
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ func (v *View) setRune(x, y int, ch rune, fgColor, bgColor Attribute) {
523523
}
524524

525525
if matched, selected := v.isPatternMatchedRune(x, y); matched {
526+
fgColor = ColorBlack
526527
if selected {
527528
bgColor = ColorCyan
528529
} else {

0 commit comments

Comments
 (0)