Skip to content
Myr

Skip adaptive height validation when --tmux overrides --height

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #4742

authored by Junegunn Choi · committed by Junegunn Choi · parent 1acf980 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/options.go+1 added-1 removed
3591 unmodified lines
3592 }3593 }3594 }35953596 if opts.Height.auto {3596 if opts.Height.auto && (opts.Tmux == nil || opts.Tmux.index < opts.Height.index) {3597 for _, s := range []sizeSpec{opts.Margin[0], opts.Margin[2]} {3598 if s.percent {3599 return errors.New("adaptive height is not compatible with top/bottom percent margin")3600 }
329 unmodified lines