From b8669c420bffe1bacf8b4de1c2d13d50eec00455 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Thu, 4 Aug 2022 11:15:21 -0400 Subject: [PATCH] fix: enter `AltScreen` if auto height --- filter/command.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filter/command.go b/filter/command.go index 7e6dd3b..d9a16e6 100644 --- a/filter/command.go +++ b/filter/command.go @@ -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)