Clear screen before displaying panel in stats mode.

This commit is contained in:
2023-04-02 19:37:55 -07:00
parent 2c2e68ff93
commit 74a2493ef4

View File

@ -375,6 +375,7 @@ func statsMode[C StatsCollection](p *Player[C]) error {
} else if v <= 0 || v > n {
fmt.Println("There's no info panel with that index.")
} else {
cls()
err := displayOnePanel(p, p.InfoPanels[v-1])
errs.Add(err)
if IsSeriousError(err) {