m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Fix panic when use header border without pointer/marker (#4345)

This commit is contained in:
phanium
2025-04-13 19:24:29 +08:00
committed by GitHub
parent ed4442d9ea
commit 66df24040f
2 changed files with 15 additions and 0 deletions

View File

@@ -2647,6 +2647,9 @@ func (t *Terminal) headerIndent(borderShape tui.BorderShape) int {
}
if borderShape.HasLeft() {
indentSize -= 1 + t.borderWidth
if indentSize < 0 {
indentSize = 0
}
}
return indentSize
}