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)