mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-15 20:23:50 -07:00
Avoid printing items in an extremely narrow screen
This commit is contained in:
@@ -3172,7 +3172,9 @@ func (t *Terminal) printHighlighted(result Result, colBase tui.ColorPair, colMat
|
|||||||
displayWidth = t.displayWidthWithLimit(line, 0, displayWidth)
|
displayWidth = t.displayWidthWithLimit(line, 0, displayWidth)
|
||||||
}
|
}
|
||||||
|
|
||||||
t.printColoredString(t.window, line, offsets, colBase)
|
if maxWidth > 0 {
|
||||||
|
t.printColoredString(t.window, line, offsets, colBase)
|
||||||
|
}
|
||||||
if postTask != nil {
|
if postTask != nil {
|
||||||
postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw)
|
postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user