From 39db02616158020b180a56dc8f1bdcf9f8365945 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 5 Jun 2025 22:02:22 +0900 Subject: Fix inconsistent placement of header-lines with border options fzf displayed --header-lines inconsistently depending on the presence of borders: # --header and --header-lines co-located seq 10 | fzf --header-lines 3 --header "$(seq 101 103)" --header-first # --header and --header-lines separated seq 10 | fzf --header-lines 3 --header "$(seq 101 103)" --header-first --header-lines-border This commit fixes the inconsistency with the following logic: * If only one of --header or --header-lines is provided, --header-first applies to that single header. * If both are present, --header-first affects only the regular --header, not --header-lines. --- man/man1/fzf.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'man/man1') diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index a07222e1..c5f13622 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -1001,7 +1001,8 @@ The first N lines of the input are treated as the sticky header. When lines that follow. .TP .B "\-\-header\-first" -Print header before the prompt line +Print header before the prompt line. When both normal header and header lines +(\fB\-\-header\-lines\fR) are present, this applies only to the normal header. .TP .BI "\-\-header\-border" [=STYLE] Draw border around the header section -- cgit v1.2.3