summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-23 10:25:10 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-23 10:25:10 +0200
commitdb522e57d932fbecfaecea50573cee60b484a99d (patch)
treebed633943f6622aa47eee4ebed341ba3d364f2b8 /src
parentd2539f25a961e163385b39d4825126e9bd342474 (diff)
downloadfpGUI-db522e57d932fbecfaecea50573cee60b484a99d.tar.xz
memo: ResetSelectionVariables was incomplete.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_memo.pas6
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;