diff options
-rw-r--r-- | src/gui/fpg_edit.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/fpg_edit.pas b/src/gui/fpg_edit.pas index dd7958ab..da98224c 100644 --- a/src/gui/fpg_edit.pas +++ b/src/gui/fpg_edit.pas @@ -1038,7 +1038,7 @@ begin FHeightMargin := 2; FMaxLength := 0; // no limit FText := ''; - FCursorPos := UTF8Length(FText); + FCursorPos := 0; FSelStart := FCursorPos; FSelOffset := 0; FTextOffset := 0; @@ -1129,7 +1129,7 @@ begin s := AValue; FText := s; - FCursorPos := UTF8Length(FText); + FCursorPos := 0; FSelStart := FCursorPos; FSelOffset := 0; FTextOffset := 0; |