aboutsummaryrefslogtreecommitdiffstats
path: root/termui/show_bug.go
diff options
context:
space:
mode:
authorludovicm67 <ludovicmuller1@gmail.com>2019-08-28 21:13:45 +0200
committerludovicm67 <ludovicmuller1@gmail.com>2019-10-15 20:42:27 +0200
commit75004e1298b530fa2a3231b9c9f25441a32b35d4 (patch)
tree6d8d13f582b85d6d524be857cce4d5a3224b61e0 /termui/show_bug.go
parentd0d9ea56b9fcb8f2638269b1a6856ef14db7d694 (diff)
downloadgit-bug-75004e1298b530fa2a3231b9c9f25441a32b35d4.tar.gz
bug: rename RGBA to Color
Diffstat (limited to 'termui/show_bug.go')
-rw-r--r--termui/show_bug.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go
index 82d4160e..f9a30b4b 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -429,8 +429,9 @@ func (sb *showBug) renderSidebar(g *gocui.Gui, sideView *gocui.View) error {
labelStr := make([]string, len(snap.Labels))
for i, l := range snap.Labels {
- color256 := l.Term256()
- labelStr[i] = fmt.Sprintf("\x1b[38;5;%dm◼\x1b[0m %s", color256, string(l))
+ lc := l.Color()
+ lc256 := lc.Term256()
+ labelStr[i] = lc256.Escape() + "◼ " + lc256.Unescape() + l.String()
}
labels := strings.Join(labelStr, "\n")