fix clifmt/symbols (forgot the '\r')

This commit is contained in:
xdrm-brackets 2018-11-11 15:12:31 +01:00
parent 20245a9955
commit f094254acc
2 changed files with 3 additions and 3 deletions

View File

@ -89,12 +89,12 @@ func (r *Reader) Execute() error {
_, err := inst.Exec(*r.Context)
if err != nil {
fmt.Printf("\r")
clifmt.Align(fmt.Sprintf("\r(%d) %s", i, clifmt.Color(34, inst.Raw())))
clifmt.Align(fmt.Sprintf("(%d) %s", i, clifmt.Color(34, inst.Raw())))
fmt.Printf("%s \n", clifmt.Color(31, err.Error()))
continue
} else {
fmt.Printf("\r")
clifmt.Align(fmt.Sprintf("\r(%d) %s", i, clifmt.Color(34, inst.Raw())))
clifmt.Align(fmt.Sprintf("(%d) %s", i, clifmt.Color(34, inst.Raw())))
fmt.Printf("%s \n", clifmt.Color(32, "done"))
}
}

View File

@ -57,7 +57,7 @@ func Align(s string) {
}
}
size = getRealSize(s) - 1
size = getRealSize(s)
}
// 2. print string