Set inline separator caps per side

This commit is contained in:
Junegunn Choi committed 2026-04-20 00:47:16 +09:00
1 parent 6f3e5de150
commit d247284bc3
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -1167,8 +1167,10 @@ func (w *LightWindow) DrawHSeparator(row int, windowType WindowType, useBottom b
line = w.border.bottom
}
var leftCap, rightCap rune
if shape.HasLeft() || shape.HasRight() {
if shape.HasLeft() {
leftCap = w.border.leftMid
}
if shape.HasRight() {
rightCap = w.border.rightMid
}
w.drawHLine(row, line, leftCap, rightCap, color)