mirror of
https://github.com/charmbracelet/gum
synced 2024-05-17 21:56:42 +02:00
fix: enter AltScreen
if auto height
This commit is contained in:
parent
7842b83c9d
commit
b8669c420b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue