send to stdout instead of stderr to prevent breaking dual pane

This commit is contained in:
2023-11-04 23:59:12 -07:00
parent 5536bca34e
commit e3543c61bb

View File

@@ -88,7 +88,7 @@ func main() {
m := model{
filepicker: fp,
}
tm, _ := tea.NewProgram(&m, tea.WithOutput(os.Stderr)).Run()
tm, _ := tea.NewProgram(&m).Run()
mm := tm.(model)
fmt.Println("\n You selected: " + m.filepicker.Styles.Selected.Render(mm.selectedFile) + "\n")
}