mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-21 20:35:11 +00:00
Fix full line background in preview window
This commit is contained in:
parent
ad113d00b7
commit
a24eb99679
@ -15,6 +15,7 @@ CHANGELOG
|
|||||||
```sh
|
```sh
|
||||||
fzf --gap --color gutter:-1
|
fzf --gap --color gutter:-1
|
||||||
```
|
```
|
||||||
|
- Bug fixes
|
||||||
|
|
||||||
0.55.0
|
0.55.0
|
||||||
------
|
------
|
||||||
|
@ -2721,11 +2721,15 @@ Loop:
|
|||||||
url = nil
|
url = nil
|
||||||
t.pwindow.LinkEnd()
|
t.pwindow.LinkEnd()
|
||||||
}
|
}
|
||||||
|
if ansi != nil {
|
||||||
|
lbg = ansi.lbg
|
||||||
|
} else {
|
||||||
|
lbg = -1
|
||||||
|
}
|
||||||
str, width := t.processTabs(trimmed, prefixWidth)
|
str, width := t.processTabs(trimmed, prefixWidth)
|
||||||
if width > prefixWidth {
|
if width > prefixWidth {
|
||||||
prefixWidth = width
|
prefixWidth = width
|
||||||
if t.theme.Colored && ansi != nil && ansi.colored() {
|
if t.theme.Colored && ansi != nil && ansi.colored() {
|
||||||
lbg = ansi.lbg
|
|
||||||
fillRet = t.pwindow.CFill(ansi.fg, ansi.bg, ansi.attr, str)
|
fillRet = t.pwindow.CFill(ansi.fg, ansi.bg, ansi.attr, str)
|
||||||
} else {
|
} else {
|
||||||
fillRet = t.pwindow.CFill(tui.ColPreview.Fg(), tui.ColPreview.Bg(), tui.AttrRegular, str)
|
fillRet = t.pwindow.CFill(tui.ColPreview.Fg(), tui.ColPreview.Bg(), tui.AttrRegular, str)
|
||||||
@ -2747,7 +2751,7 @@ Loop:
|
|||||||
if unchanged && lineNo == 0 {
|
if unchanged && lineNo == 0 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if lbg >= 0 {
|
if t.theme.Colored && lbg >= 0 {
|
||||||
fillRet = t.pwindow.CFill(-1, lbg, tui.AttrRegular,
|
fillRet = t.pwindow.CFill(-1, lbg, tui.AttrRegular,
|
||||||
strings.Repeat(" ", t.pwindow.Width()-t.pwindow.X())+"\n")
|
strings.Repeat(" ", t.pwindow.Width()-t.pwindow.X())+"\n")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user