Skip to content
Myr

Do not erase info separator before redrawing it

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 46877e0 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:src/terminal.go+4 added-2 removed
1218 unmodified lines
1219 pos := 01220 line := t.promptLine()1221 switch t.infoStyle {1222 case infoDefault:1223 t.move(line+1, 0, true)1223 t.move(line+1, 0, t.separatorLen == 0)1224 if t.reading {1225 duration := int64(spinnerDuration)1226 idx := (time.Now().UnixNano() % (duration * int64(len(t.spinner)))) / duration1227 t.window.CPrint(tui.ColSpinner, t.spinner[idx])1228 } else {1229 t.window.Print(" ") // Clear spinner1230 }1231 t.move(line+1, 2, false)1232 pos = 21233 case infoInline:1234 pos = t.promptLen + t.queryLen[0] + t.queryLen[1] + 11235 if pos+len(" < ") > t.window.Width() {1236 return1237 }1236 t.move(line, pos, true)1238 t.move(line, pos, t.separatorLen == 0)1239 if t.reading {1240 t.window.CPrint(tui.ColSpinner, " < ")1241 } else {1242 t.window.CPrint(tui.ColPrompt, " < ")
1900 unmodified lines