Skip to content
Myr

feat: append spinner in the end when --info=inline (#4567)

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

Test: go run main.go --query "$(seq 100)" --info inline --border < <(sleep 60) go run main.go --query "$(seq 100)" --info inline --info-command 'echo hello' --border < <(sleep 60) Close #4344 Close #619

authored by phanium · committed by GitHub · parent 991c364 · Browse files · 1 file+5 added−0 removed
This commit

State

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

Trailers

  • Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:src/terminal.go+5 added
2979 unmodified lines
2980 t.window.CPrint(tui.ColInfo, output)2981 } else {2982 outputPrinter(t.window, maxWidth)2983 }2984 if t.infoStyle == infoInline && outputLen < maxWidth-1 && t.reading {2985 t.window.Print(" ")2986 printSpinner()2987 outputLen += 22988 }29892990 if t.infoStyle == infoInlineRight {2991 if t.separatorLen > 0 {2992 if !move(line+1, 0, false) {
4280 unmodified lines