From 12be5e7b8320948a9b61c5735cf8bef92304471f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 26 Mar 2026 20:55:51 +0900 Subject: [PATCH] Skip adaptive height validation when --tmux overrides --height Fix #4742 --- src/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.go b/src/options.go index 479d3416..223d9cf0 100644 --- a/src/options.go +++ b/src/options.go @@ -3593,7 +3593,7 @@ func validateOptions(opts *Options) error { } } - if opts.Height.auto { + if opts.Height.auto && (opts.Tmux == nil || opts.Tmux.index < opts.Height.index) { for _, s := range []sizeSpec{opts.Margin[0], opts.Margin[2]} { if s.percent { return errors.New("adaptive height is not compatible with top/bottom percent margin")