mirror of https://github.com/charmbracelet/gum
fix: use program.Run() in pager
This commit is contained in:
parent
2e4ddce3f7
commit
fd58eb07fc
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue