From 959c73bfc66e5f573573492733c88e2c92f17944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=87=8C=E6=B1=90?= Date: Mon, 16 Dec 2024 15:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A8=E8=A1=8C?= =?UTF-8?q?=E6=9C=AB=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/TextArea.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }