diff options
author | nyamatongwe <unknown> | 2001-04-12 14:18:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-04-12 14:18:15 +0000 |
commit | d49d8a8db1f6060fc3580a169e2277be9fe6ae10 (patch) | |
tree | 6b53a4ec7f4bf4d8a98079dfaacd0e061ba31553 /src | |
parent | a84387b6f26e15b7f5e26c25358a823c77713592 (diff) | |
download | scintilla-mirror-d49d8a8db1f6060fc3580a169e2277be9fe6ae10.tar.gz |
Fix from Philippe to a rectangular selection staing active after the user
starts navigating with cursor keys.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |