mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 04:02:01 -07:00
Fix premature truncation of colored line when --preview-window wrap is set
Fix #2346
This commit is contained in:
@@ -1331,7 +1331,7 @@ func (t *Terminal) renderPreviewText(unchanged bool) {
|
||||
} else {
|
||||
fillRet = t.pwindow.CFill(tui.ColPreview.Fg(), tui.ColPreview.Bg(), tui.AttrRegular, str)
|
||||
}
|
||||
return fillRet == tui.FillContinue
|
||||
return fillRet == tui.FillContinue || t.previewOpts.wrap && fillRet == tui.FillNextLine
|
||||
})
|
||||
t.previewer.scrollable = t.previewer.scrollable || t.pwindow.Y() == height-1 && t.pwindow.X() == t.pwindow.Width()
|
||||
if fillRet == tui.FillNextLine {
|
||||
|
Reference in New Issue
Block a user