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) _, err := inst.Exec(*r.Context)
if err != nil { if err != nil {
fmt.Printf("\r") 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())) fmt.Printf("%s \n", clifmt.Color(31, err.Error()))
continue continue
} else { } else {
fmt.Printf("\r") 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")) 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 // 2. print string