diff options
| author | nyamatongwe <unknown> | 2005-11-03 22:30:58 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2005-11-03 22:30:58 +0000 | 
| commit | 3b2d64cf99a5f0b7f32f655568165951f252b9b5 (patch) | |
| tree | 8bd9cc760ea542e7378f166faca0f4b53ab2810e /src | |
| parent | 6565a90244d72d5b4ab2a2eef681c199246184c4 (diff) | |
| download | scintilla-mirror-3b2d64cf99a5f0b7f32f655568165951f252b9b5.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.cxx | 4 | 
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);  | 
