From d49d8a8db1f6060fc3580a169e2277be9fe6ae10 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 12 Apr 2001 14:18:15 +0000 Subject: Fix from Philippe to a rectangular selection staing active after the user starts navigating with cursor keys. --- src/Editor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index e6b1d69f3..e9a258775 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -467,6 +467,7 @@ void Editor::SetSelection(int currentPos_) { } void Editor::SetEmptySelection(int currentPos_) { + selType = selStream; SetSelection(currentPos_, currentPos_); } @@ -2878,13 +2879,13 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b CopySelectionIntoDrag(); StartDrag(); } else { - selType = alt ? selRectangle : selStream; xStartSelect = pt.x - vs.fixedColumnWidth + xOffset; xEndSelect = pt.x - vs.fixedColumnWidth + xOffset; SetDragPosition(invalidPosition); SetMouseCapture(true); if (!shift) SetEmptySelection(newPos); + selType = alt ? selRectangle : selStream; selectionType = selChar; originalAnchorPos = currentPos; } -- cgit v1.2.3