mirror of
https://github.com/junegunn/fzf.git
synced 2026-04-11 02:14:20 +08:00
Skip adaptive height validation when --tmux overrides --height
Fix #4742
This commit is contained in:
@@ -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