We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c4bb9 commit 2da9527Copy full SHA for 2da9527
spin/spin.go
@@ -103,10 +103,6 @@ func (m model) Init() tea.Cmd {
103
}
104
105
func (m model) View() string {
106
- if !m.isTTY {
107
- return m.title
108
- }
109
-
110
var out string
111
if m.showStderr {
112
out += errbuf.String()
@@ -115,10 +111,14 @@ func (m model) View() string {
115
out += outbuf.String()
116
117
113
118
- if m.quitting && out != "" {
114
+ if m.quitting {
119
return out
120
121
+ if !m.isTTY {
+ return m.title
+ }
+
122
var header string
123
if m.align == "left" {
124
header = m.spinner.View() + " " + m.title
0 commit comments