aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-11-03 22:30:58 +0000
committernyamatongwe <devnull@localhost>2005-11-03 22:30:58 +0000
commitfd87954421819f1512753f2479505e59ce6eb1b3 (patch)
tree8bd9cc760ea542e7378f166faca0f4b53ab2810e /src
parent9b95e3ce6670eb7999113ae2fdbff3dbb2dea7d5 (diff)
downloadscintilla-mirror-fd87954421819f1512753f2479505e59ce6eb1b3.tar.gz
Stopped dragging of empty ranges.
Correct unlocking of empty data in drag and drop. Allow entry of NUL through Shift+Ctrl+@ in Unicode mode.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 996d540db..bf94fb8ed 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5070,7 +5070,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b
NotifyHotSpotClicked(newPos, shift, ctrl, alt);
}
if (!shift) {
- inDragDrop = PointInSelection(pt);
+ inDragDrop = PointInSelection(pt) && !SelectionEmpty();
}
if (inDragDrop) {
SetMouseCapture(false);
@@ -5223,7 +5223,7 @@ void Editor::ButtonMove(Point pt) {
}
}
// Display regular (drag) cursor over selection
- if (PointInSelection(pt)) {
+ if (PointInSelection(pt) && !SelectionEmpty()) {
DisplayCursor(Window::cursorArrow);
} else if (PointIsHotspot(pt)) {
DisplayCursor(Window::cursorHand);