mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-14 12:43:45 +02: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:
parent
991c36453c
commit
e659b46ff5
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue