summaryrefslogtreecommitdiff
path: root/src/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.go')
-rw-r--r--src/options.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/options.go b/src/options.go
index b7eed83c..2b91fbf7 100644
--- a/src/options.go
+++ b/src/options.go
@@ -3110,7 +3110,14 @@ func postProcessOptions(opts *Options) error {
if opts.HeaderLinesShape == tui.BorderNone {
opts.HeaderLinesShape = tui.BorderPhantom
} else if opts.HeaderLinesShape == tui.BorderUndefined {
- opts.HeaderLinesShape = tui.BorderNone
+ // In reverse-list layout, header lines should be at the top, while
+ // ordinary header should be at the bottom. So let's use a separate
+ // window for the header lines.
+ if opts.Layout == layoutReverseList {
+ opts.HeaderLinesShape = tui.BorderPhantom
+ } else {
+ opts.HeaderLinesShape = tui.BorderNone
+ }
}
if opts.Pointer == nil {