Skip to content
Myr

fix(spin): clear title after finished (#815)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #802

authored by Carlos Alexandro Becker · committed by GitHub · parent 05c4bb9 · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:spin/spin.go+5 added-5 removed
101 unmodified lines
102 )103}104105func (m model) View() string {106 if !m.isTTY {107 return m.title108 }109106 var out string107 if m.showStderr {108 out += errbuf.String()109 }110 if m.showStdout {111 out += outbuf.String()112 }113118 if m.quitting && out != "" {114 if m.quitting {115 return out116 }117118 if !m.isTTY {119 return m.title120 }121122 var header string123 if m.align == "left" {124 header = m.spinner.View() + " " + m.title125 } else {
25 unmodified lines