mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 14:23:47 -05:00
feat: append spinner in the end when --info=inline (#4567)
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 Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
@@ -2981,6 +2981,11 @@ func (t *Terminal) printInfoImpl() {
|
||||
} else {
|
||||
outputPrinter(t.window, maxWidth)
|
||||
}
|
||||
if t.infoStyle == infoInline && outputLen < maxWidth-1 && t.reading {
|
||||
t.window.Print(" ")
|
||||
printSpinner()
|
||||
outputLen += 2
|
||||
}
|
||||
|
||||
if t.infoStyle == infoInlineRight {
|
||||
if t.separatorLen > 0 {
|
||||
|
||||
Reference in New Issue
Block a user