aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-10-15 10:13:27 +0000
committernyamatongwe <unknown>2009-10-15 10:13:27 +0000
commit3cb3a166e055e98c8efcda619dd8c8a2ff000c68 (patch)
treee6aff80d054979a2c83e7bbfdd29336e03051a7b /src
parent6e2ce5b625898689e50775b278cfeec6b73adddb (diff)
downloadscintilla-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.cxx6
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();