Skip to content

Commit

Permalink
Fix a cursor painting bug
Browse files Browse the repository at this point in the history
The cursor wouldn't paint on the display if it was located after the
last character of the buffer. Fix this
  • Loading branch information
rhburrows committed Jun 16, 2011
1 parent 6df2d77 commit 101322d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/display.js
Expand Up @@ -61,6 +61,10 @@
}
}
}

if (editor.pointPosition() == contents.length) {
this.paintCursor(col, row);
}
},

paintCharacter : function(character, col, row) {
Expand Down

0 comments on commit 101322d

Please sign in to comment.