mirror of
https://github.com/junegunn/fzf
synced 2026-06-09 10:03:17 +00:00
Skip adaptive height validation when --tmux overrides --height
Fix #4742
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user