From d247284bc377f1b36b97d0e8246eda43c147b27e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 19 Apr 2026 20:42:33 +0900 Subject: [PATCH] Set inline separator caps per side --- src/tui/light.go | 4 +++- src/tui/tcell.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tui/light.go b/src/tui/light.go index 2c661808..d0f02c99 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -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) diff --git a/src/tui/tcell.go b/src/tui/tcell.go index 55256592..1dbb6dc5 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -1067,8 +1067,10 @@ func (w *TcellWindow) DrawHSeparator(row int, windowType WindowType, useBottom b line = w.borderStyle.bottom } var leftCap, rightCap rune - if shape.HasLeft() || shape.HasRight() { + if shape.HasLeft() { leftCap = w.borderStyle.leftMid + } + if shape.HasRight() { rightCap = w.borderStyle.rightMid } w.drawHLine(w.top+row, line, leftCap, rightCap, style)