aboutsummaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-11 22:27:45 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-11 22:27:45 +0200
commitb96819a8e82745d934b591d8e1d93e11b1646cc6 (patch)
treebd80d883e7c27585bbbda4107dba0b3037f080ee /termui
parentf7ef5cdb3af2b0f958e54a6c24167d3b430dca1c (diff)
downloadgit-bug-b96819a8e82745d934b591d8e1d93e11b1646cc6.tar.gz
termui: properly handle color sequence code even inside a word
Diffstat (limited to 'termui')
-rw-r--r--termui/show_bug.go6
1 files changed, 3 insertions, 3 deletions
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 {