Skip to content

Commit

Permalink
fix error of encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
kyai committed Dec 12, 2019
1 parent c055c87 commit aed6732
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,12 @@ func (g *Gui) drawTitle(v *View, fgColor, bgColor Attribute) error {
return nil
}

for i, ch := range v.Title {
runes := make([]rune, 0)
for _, r := range v.Title {
runes = append(runes, r)
}

for i, ch := range runes {
x := v.x0 + i + 2
if x < 0 {
continue
Expand Down

0 comments on commit aed6732

Please sign in to comment.