mirror of
https://github.com/charmbracelet/gum.git
synced 2024-08-17 02:00:46 +03: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 New Issue
Block a user