Skip to content

Commit

Permalink
fixes #236 CellBuffer.Fill doesn't set cell.width
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Sep 24, 2018
1 parent a24b9b6 commit a5810f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cell.go
Expand Up @@ -179,12 +179,13 @@ func (cb *CellBuffer) Resize(w, h int) {

// Fill fills the entire cell buffer array with the specified character
// and style. Normally choose ' ' to clear the screen. This API doesn't
// support combining characters.
// support combining characters, or characters with a width larger than one.
func (cb *CellBuffer) Fill(r rune, style Style) {
for i := range cb.cells {
c := &cb.cells[i]
c.currMain = r
c.currComb = nil
c.currStyle = style
c.width = 1
}
}

0 comments on commit a5810f6

Please sign in to comment.