Skip to content
Myr

Set inline separator caps per side

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 6f3e5de · Browse files · 2 files+6 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−2 removed

  • other:+6 added−2 removed

2 files+6 added−2 removed

modified:src/tui/light.go+3 added-1 removed
1165 unmodified lines
1166 if useBottom {1167 line = w.border.bottom1168 }1169 var leftCap, rightCap rune1170 if shape.HasLeft() || shape.HasRight() {1170 if shape.HasLeft() {1171 leftCap = w.border.leftMid1172 }1173 if shape.HasRight() {1174 rightCap = w.border.rightMid1175 }1176 w.drawHLine(row, line, leftCap, rightCap, color)1177}
384 unmodified lines
modified:src/tui/tcell.go+3 added-1 removed
1065 unmodified lines
1066 if useBottom {1067 line = w.borderStyle.bottom1068 }1069 var leftCap, rightCap rune1070 if shape.HasLeft() || shape.HasRight() {1070 if shape.HasLeft() {1071 leftCap = w.borderStyle.leftMid1072 }1073 if shape.HasRight() {1074 rightCap = w.borderStyle.rightMid1075 }1076 w.drawHLine(w.top+row, line, leftCap, rightCap, style)1077}
106 unmodified lines