diff options
author | nyamatongwe <devnull@localhost> | 2009-10-15 10:13:27 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-10-15 10:13:27 +0000 |
commit | a9dce11e159139df349bfbac9fa80293ec16ef91 (patch) | |
tree | e6aff80d054979a2c83e7bbfdd29336e03051a7b /src | |
parent | 937aca29eefac068d9330a9efd95460be9629730 (diff) | |
download | scintilla-mirror-a9dce11e159139df349bfbac9fa80293ec16ef91.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(); |