From fd87954421819f1512753f2479505e59ce6eb1b3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 3 Nov 2005 22:30:58 +0000 Subject: Stopped dragging of empty ranges. Correct unlocking of empty data in drag and drop. Allow entry of NUL through Shift+Ctrl+@ in Unicode mode. --- src/Editor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3