Avoid printing items in an extremely narrow screen

This commit is contained in:
Junegunn Choi
2025-02-13 22:12:25 +09:00
parent 7d26eca5cc
commit ac32fbb3b2

View File

@@ -3172,7 +3172,9 @@ func (t *Terminal) printHighlighted(result Result, colBase tui.ColorPair, colMat
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 {
postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw)
} else {