Skip to content

Commit

Permalink
Off-by-one error. Totally my fault.
Browse files Browse the repository at this point in the history
  • Loading branch information
keforbes committed May 30, 2012
1 parent 9112787 commit c7e50ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void type(KeyStroke e) {
if (position < buffer.length())
position++;
} else if (e.equals(KEY_LEFT)) {
if (position > 0)
if (position > 1)
position--;
} else {
buffer.insert(position, e.getCharacter());
Expand Down

0 comments on commit c7e50ce

Please sign in to comment.