fix: enter AltScreen if auto height

This commit is contained in:
Maas Lalani 2022-08-04 11:15:21 -04:00
parent 7842b83c9d
commit b8669c420b
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -47,6 +47,10 @@ func (o Options) Run() error {
height: o.Height,
}, tea.WithOutput(os.Stderr))
if o.Height == 0 {
p.EnterAltScreen()
}
tm, err := p.StartReturningModel()
m := tm.(model)