aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-12-30 09:44:12 +1100
committernyamatongwe <devnull@localhost>2010-12-30 09:44:12 +1100
commita3acf5d5f220b7ff2c3a9260b44da1bec97f9c59 (patch)
tree458167fc1927339455ba3cd561160cc1734f949d
parentaa38adf01f4d8d5d4fb18c2ccceb272c6c18dd6e (diff)
downloadscintilla-mirror-a3acf5d5f220b7ff2c3a9260b44da1bec97f9c59.tar.gz
Fix entering line selection mode after two clicks. Bug #3143635.
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index b0d292a44..312c39b37 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6168,6 +6168,8 @@ void Editor::ButtonUp(Point pt, unsigned int curTime, bool ctrl) {
if (inDragDrop == ddInitial) {
inDragDrop = ddNone;
SetEmptySelection(newPos.Position());
+ selectionType = selChar;
+ originalAnchorPos = sel.MainCaret();
}
if (hotSpotClickPos != INVALID_POSITION && PointIsHotspot(pt)) {
hotSpotClickPos = INVALID_POSITION;