From ceeeaa796039d5d9c05a774f87eeaa3cd308000e Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 27 Oct 2014 07:27:28 -0500 Subject: [PATCH] Minor code cleanup --- command/command.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command/command.go b/command/command.go index 30c003f2..44b549bf 100644 --- a/command/command.go +++ b/command/command.go @@ -250,8 +250,7 @@ func printcontext(p *proctl.DebuggedProcess) error { line = "\033[34m=>\033[0m" + line } - line = "\033[34m" + strconv.Itoa(i) + "\033[0m" + ": " + line - context = append(context, line) + context = append(context, fmt.Sprintf("\033[34m%d\033[0m: %s", i, line)) } fmt.Println(strings.Join(context, ""))