From e098a796bbe8b5f9d47b5cff1cc3dcfe34d67faa Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 17 Jul 2026 23:47:36 +0900 Subject: [PATCH] Ignore inline header border when hiding separator Inline header is drawn inside list border, not adjacent to input section. Decide based on section actually next to input: header lines window or list border. # Bare header lines next to input; separator needed fzf --list-border --header foo --header-lines 2 \ --header-border inline --header-lines-border none --- src/terminal.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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