Skip to content

Commit

Permalink
fix: no extra newline
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jun 27, 2023
1 parent fff80c7 commit cb5c65d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spin/spin.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (

"github.com/charmbracelet/bubbles/spinner"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
)

type model struct {
Expand Down Expand Up @@ -84,7 +83,7 @@ func (m model) View() string {
if !m.showOutput {
return header
}
return lipgloss.JoinVertical(lipgloss.Top, header, errbuf.String(), outbuf.String())
return header + errbuf.String() + "\n" + outbuf.String()
}

func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
Expand Down

0 comments on commit cb5c65d

Please sign in to comment.