mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Merge pull request #133 from k0kubun/fix_query_highlight
Fix query line highlight
This commit is contained in:
commit
26d94ca476
4
view.go
4
view.go
|
|
@ -186,8 +186,8 @@ CALCULATE_PAGE:
|
|||
// the caret is in the middle of the string
|
||||
prev := 0
|
||||
for i, r := range v.query {
|
||||
fg := termbox.ColorDefault
|
||||
bg := termbox.ColorDefault
|
||||
fg := v.config.Style.Query.fg
|
||||
bg := v.config.Style.Query.bg
|
||||
if i == v.caretPos {
|
||||
fg |= termbox.AttrReverse
|
||||
bg |= termbox.AttrReverse
|
||||
|
|
|
|||
Loading…
Reference in a new issue