diff options
Diffstat (limited to 'examples/apps')
-rw-r--r-- | examples/apps/ide/src/fpg_textedit.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/apps/ide/src/fpg_textedit.pas b/examples/apps/ide/src/fpg_textedit.pas index 38a86a23..c99297cb 100644 --- a/examples/apps/ide/src/fpg_textedit.pas +++ b/examples/apps/ide/src/fpg_textedit.pas @@ -754,7 +754,7 @@ begin begin if CaretPos.Y <= (FLines.Count-1) then if CaretPos.X > UTF8Length(FLines[CaretPos.Y]) then - CaretPos.Y := UTF8Length(FLines[CaretPos.Y]) - 1; + CaretPos.X := UTF8Length(FLines[CaretPos.Y]) - 1; FSelected := True; FSelStartNo := CaretPos.Y; FSelStartOffs := CaretPos.X + 1; |