mirror of
https://github.com/MeowLynxSea/ceditor.git
synced 2025-07-09 10:54:37 +00:00
修复了在行末无法正常输入的错误
This commit is contained in:
parent
2de85f56d4
commit
959c73bfc6
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user