mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-25 01:13:50 -07:00
Fix --info inline-right not properly clearing the previous output
(seq 100000; sleep 1) | fzf --info inline-right --bind load:change-query:x
This commit is contained in:
@@ -1715,9 +1715,11 @@ func (t *Terminal) printInfo() {
|
||||
|
||||
if t.infoStyle == infoInlineRight {
|
||||
if len(t.infoPrefix) == 0 {
|
||||
pos = util.Max(pos, t.window.Width()-util.StringWidth(output)-3)
|
||||
t.move(line, pos, false)
|
||||
newPos := util.Max(pos, t.window.Width()-util.StringWidth(output)-3)
|
||||
t.window.Print(strings.Repeat(" ", newPos-pos))
|
||||
pos = newPos
|
||||
if pos < t.window.Width() {
|
||||
t.move(line, pos, false)
|
||||
printSpinner()
|
||||
pos++
|
||||
}
|
||||
|
Reference in New Issue
Block a user