Skip to content

Commit

Permalink
fix cursor panic
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjanse committed Apr 14, 2020
1 parent 2f5aa28 commit f8553c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vterm/csi.go
Expand Up @@ -27,7 +27,7 @@ func (v *VTerm) handleEraseInDisplay(parameterCode string) {
v.RedrawWindow()
case 1: // clear from Cursor to beginning of screen
for j := 0; j < v.Cursor.Y; j++ {
for i := 0; i < len(v.Screen[j]); j++ {
for i := 0; i < len(v.Screen[j]); i++ {
v.Screen[j][i].Rune = ' '
v.Screen[j][i].IsWide = false
v.Screen[j][i].PrevWide = false
Expand Down

0 comments on commit f8553c0

Please sign in to comment.