fix: use program.Run() in pager

This commit is contained in:
Maas Lalani 2022-10-17 20:26:26 -04:00
parent 2e4ddce3f7
commit fd58eb07fc
No known key found for this signature in database
GPG Key ID: 5A6ED5CBF1A0A000
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (o Options) Run() error {
showLineNumbers: o.ShowLineNumbers,
lineNumberStyle: o.LineNumberStyle.ToLipgloss(),
}
err := tea.NewProgram(model, tea.WithAltScreen()).Start()
_, err := tea.NewProgram(model, tea.WithAltScreen()).Run()
if err != nil {
return fmt.Errorf("unable to start program: %w", err)
}