修复了在行末无法正常输入的错误

This commit is contained in:
梦凌汐 2024-12-16 15:50:14 +08:00
parent 2de85f56d4
commit 959c73bfc6

View File

@ -50,7 +50,7 @@ public:
} }
void moveRight() { void moveRight() {
if(text_.getViewLeft() < text_.getMaxLineWidth() - width + 2) { if(text_.getViewLeft() <= text_.getMaxLineWidth() - width + 2) {
text_.setViewLeft(text_.getViewLeft() + 1); text_.setViewLeft(text_.getViewLeft() + 1);
} }
} }