Skip to content

Commit

Permalink
Check if parseInput returns an empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouzae committed Jul 3, 2020
1 parent d57c002 commit e754e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (v *View) writeRunes(p []rune) {
v.wx = 0
default:
cells := v.parseInput(r)
if cells == nil {
if cells == nil || len(cells) <= 0 {
continue
}
v.writeCells(v.wx, v.wy, cells)
Expand Down

0 comments on commit e754e34

Please sign in to comment.