diff --git a/src/terminal.go b/src/terminal.go index 294c9162..1aaece74 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1711,8 +1711,6 @@ func (t *Terminal) separatorLength() int { return t.separatorLen } -// The default horizontal separator is redundant if the input section is -// already visually separated from the list section by a border line // Whether the input border draws a line on the side facing the list section. // BorderLine is placed on the facing side when resolved in NewTerminal. func inputBorderFacesList(layout layoutType, shape tui.BorderShape) bool { @@ -1725,6 +1723,8 @@ func inputBorderFacesList(layout layoutType, shape tui.BorderShape) bool { return shape.HasTop() } +// The default horizontal separator is redundant if the input section is +// already visually separated from the list section by a border line func (t *Terminal) separatedByBorder() bool { // The input border itself draws a line on the side facing the list section if inputBorderFacesList(t.layout, t.inputBorderShape) {