mirror of
https://github.com/charmbracelet/gum
synced 2024-06-09 01:02:17 +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,
|
height: o.Height,
|
||||||
}, tea.WithOutput(os.Stderr))
|
}, tea.WithOutput(os.Stderr))
|
||||||
|
|
||||||
|
if o.Height == 0 {
|
||||||
|
p.EnterAltScreen()
|
||||||
|
}
|
||||||
|
|
||||||
tm, err := p.StartReturningModel()
|
tm, err := p.StartReturningModel()
|
||||||
m := tm.(model)
|
m := tm.(model)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue