Fix panic when use header border without pointer/marker (#4345)
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled

This commit is contained in:
phanium authored and GitHub committed 2025-04-13 20:24:29 +09:00
1 parent ed4442d9ea
commit 66df24040f
2 files changed
+15

No files matched your search

+3
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
}