Explorar el Código

Fixed Alerbox size with Unicode.

bugz hace 1 año
padre
commit
9054d1db50
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      door/box.go

+ 1 - 1
door/box.go

@@ -85,7 +85,7 @@ func (b *Box) Bottom() string {
 
 func AlertBox(text string, style int) []string {
 	var results []string
-	b := Box{Width: len(text), Style: style}
+	b := Box{Width: StringLen(text), Style: style}
 	results = append(results, b.Top())
 	results = append(results, b.Row(text))
 	results = append(results, b.Bottom())