diff --git a/src/terminal.go b/src/terminal.go index bb1a8ff4..66bef46f 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1734,8 +1734,10 @@ func (t *Terminal) separatedByBorder() bool { // The input section has its own window. Determine which section it is // facing, and check if the border of that section draws a line toward it. - if hasHeaderWindow && !t.headerFirst { - // Header section + if hasHeaderWindow && !t.headerFirst && t.headerBorderShape != tui.BorderInline { + // Header section; an inline header is not a separate section, it is + // drawn inside the list border, so it falls through to the branches + // below return t.borderFacingInput(t.headerBorderShape) } // The header lines section is next to the input section, except in