mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-12 19:07:00 +08: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]} {
|
for _, s := range []sizeSpec{opts.Margin[0], opts.Margin[2]} {
|
||||||
if s.percent {
|
if s.percent {
|
||||||
return errors.New("adaptive height is not compatible with top/bottom percent margin")
|
return errors.New("adaptive height is not compatible with top/bottom percent margin")
|
||||||
|
|||||||
Reference in New Issue
Block a user