Skip to content
Myr

Fix full line background in preview window

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent ad113d0 · Browse files · 2 files+7 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−2 removed

  • other:+7 added−2 removed

2 files+7 added−2 removed

modified:src/terminal.go+6 added-2 removed
2719 unmodified lines
2720 if url != nil && (ansi == nil || ansi.url == nil) {2721 url = nil2722 t.pwindow.LinkEnd()2723 }2724 if ansi != nil {2725 lbg = ansi.lbg2726 } else {2727 lbg = -12728 }2729 str, width := t.processTabs(trimmed, prefixWidth)2730 if width > prefixWidth {2731 prefixWidth = width2732 if t.theme.Colored && ansi != nil && ansi.colored() {2728 lbg = ansi.lbg2733 fillRet = t.pwindow.CFill(ansi.fg, ansi.bg, ansi.attr, str)2734 } else {2735 fillRet = t.pwindow.CFill(tui.ColPreview.Fg(), tui.ColPreview.Bg(), tui.AttrRegular, str)2736 }
13 unmodified lines
2750 }2751 if unchanged && lineNo == 0 {2752 break2753 }2750 if lbg >= 0 {2754 if t.theme.Colored && lbg >= 0 {2755 fillRet = t.pwindow.CFill(-1, lbg, tui.AttrRegular,2756 strings.Repeat(" ", t.pwindow.Width()-t.pwindow.X())+"\n")2757 } else {2758 fillRet = t.pwindow.Fill("\n")
2333 unmodified lines
modified:CHANGELOG.md+1 added
13 unmodified lines
14 - Or just to make the list easier to read. For single-line items, you probably want to set `--color gutter:-1` as well to hide the gutter.15 ```sh16 fzf --gap --color gutter:-117 ```18- Bug fixes19200.55.021------22_Release highlights: https://junegunn.github.io/fzf/releases/0.55.0/_
2275 unmodified lines