summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-03 11:56:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-03 12:18:34 +0900
commitf6aa28c380b5adda251fa9fe33dfb4a2ae721b1f (patch)
tree7e7b0fecf11e1f7fec099fc530e06b4f5b65c96b /src
parentdba1644518a74a6263f76900b04d7b7c0ea6e894 (diff)
Fix --info inline-right not properly clearing the previous output
(seq 100000; sleep 1) | fzf --info inline-right --bind load:change-query:x
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go
index e9ec363b..932553ed 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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++
}