diff --git a/components/TextArea.h b/components/TextArea.h index ed9dcf4..985da79 100644 --- a/components/TextArea.h +++ b/components/TextArea.h @@ -50,7 +50,7 @@ public: } void moveRight() { - if(text_.getViewLeft() < text_.getMaxLineWidth() - width + 2) { + if(text_.getViewLeft() <= text_.getMaxLineWidth() - width + 2) { text_.setViewLeft(text_.getViewLeft() + 1); } }