aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx3
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;
}