mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-02-02 20:18:31 +00:00
Do not erase info separator before redrawing it
This commit is contained in:
parent
46877e0a92
commit
2ba68d24f2
@ -1220,11 +1220,13 @@ func (t *Terminal) printInfo() {
|
||||
line := t.promptLine()
|
||||
switch t.infoStyle {
|
||||
case infoDefault:
|
||||
t.move(line+1, 0, true)
|
||||
t.move(line+1, 0, t.separatorLen == 0)
|
||||
if t.reading {
|
||||
duration := int64(spinnerDuration)
|
||||
idx := (time.Now().UnixNano() % (duration * int64(len(t.spinner)))) / duration
|
||||
t.window.CPrint(tui.ColSpinner, t.spinner[idx])
|
||||
} else {
|
||||
t.window.Print(" ") // Clear spinner
|
||||
}
|
||||
t.move(line+1, 2, false)
|
||||
pos = 2
|
||||
@ -1233,7 +1235,7 @@ func (t *Terminal) printInfo() {
|
||||
if pos+len(" < ") > t.window.Width() {
|
||||
return
|
||||
}
|
||||
t.move(line, pos, true)
|
||||
t.move(line, pos, t.separatorLen == 0)
|
||||
if t.reading {
|
||||
t.window.CPrint(tui.ColSpinner, " < ")
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user