From b96819a8e82745d934b591d8e1d93e11b1646cc6 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 11 Aug 2018 22:27:45 +0200 Subject: termui: properly handle color sequence code even inside a word --- termui/show_bug.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'termui') diff --git a/termui/show_bug.go b/termui/show_bug.go index 585ee148..494c0fd5 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -167,7 +167,7 @@ func (sb *showBug) renderMain(g *gocui.Gui, mainView *gocui.View) error { sb.childViews = nil sb.selectableView = nil - bugHeader := fmt.Sprintf("[ %s ] %s\n\n[ %s ] %s opened this bug on %s", + bugHeader := fmt.Sprintf("[%s] %s\n\n[%s] %s opened this bug on %s", util.Cyan(snap.HumanId()), util.Bold(snap.Title), util.Yellow(snap.Status), @@ -272,7 +272,7 @@ func (sb *showBug) renderMain(g *gocui.Gui, mainView *gocui.View) error { if len(added) > 0 { action.WriteString("added ") - action.WriteString(strings.Join(added, " ")) + action.WriteString(strings.Join(added, ", ")) if len(removed) > 0 { action.WriteString(" and ") @@ -281,7 +281,7 @@ func (sb *showBug) renderMain(g *gocui.Gui, mainView *gocui.View) error { if len(removed) > 0 { action.WriteString("removed ") - action.WriteString(strings.Join(removed, " ")) + action.WriteString(strings.Join(removed, ", ")) } if len(added)+len(removed) > 1 { -- cgit