diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-09-23 10:25:10 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-09-23 10:25:10 +0200 |
commit | db522e57d932fbecfaecea50573cee60b484a99d (patch) | |
tree | bed633943f6622aa47eee4ebed341ba3d364f2b8 /src | |
parent | d2539f25a961e163385b39d4825126e9bd342474 (diff) | |
download | fpGUI-db522e57d932fbecfaecea50573cee60b484a99d.tar.xz |
memo: ResetSelectionVariables was incomplete.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_memo.pas | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/fpg_memo.pas b/src/gui/fpg_memo.pas index 7818ff41..a3590e56 100644 --- a/src/gui/fpg_memo.pas +++ b/src/gui/fpg_memo.pas @@ -418,9 +418,9 @@ procedure TfpgMemo.ResetSelectionVariables; begin FSelecting := False; FSelStartPos := FCursorPos; - FSelEndPos := 0; - FSelStartLine := -1; - FSelEndLine := -1; + FSelEndPos := FCursorPos; + FSelStartLine := FCursorLine; + FSelEndLine := FCursorLine; FMouseDragging := False; end; |