diff options
author | nyamatongwe <unknown> | 2009-10-15 10:13:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-10-15 10:13:27 +0000 |
commit | 3cb3a166e055e98c8efcda619dd8c8a2ff000c68 (patch) | |
tree | e6aff80d054979a2c83e7bbfdd29336e03051a7b /src | |
parent | 6e2ce5b625898689e50775b278cfeec6b73adddb (diff) | |
download | scintilla-mirror-3cb3a166e055e98c8efcda619dd8c8a2ff000c68.tar.gz |
Fixed new problem where ALt+Drag was using the start of file as the anchor.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 0db5789a4..82c5895eb 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5678,8 +5678,10 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b SetSelection(newPos, newPos); } } - SelectionPosition anchorCurrent = sel.IsRectangular() ? - sel.Rectangular().anchor : sel.RangeMain().anchor; + SelectionPosition anchorCurrent = newPos; + if (shift) + anchorCurrent = sel.IsRectangular() ? + sel.Rectangular().anchor : sel.RangeMain().anchor; sel.selType = alt ? Selection::selRectangle : Selection::selStream; selectionType = selChar; originalAnchorPos = sel.MainCaret(); |