From 8c49e08b30cd5e2edd2eb0b28c567db457e72df8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 9 Mar 2000 03:11:53 +0000 Subject: Drag and drop copy can now be done to edge of selection. --- src/Editor.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 4723d8850..e03ebb878 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2119,7 +2119,11 @@ void Editor::DropAt(int position, const char *value, bool moving, bool rectangul int positionWasInSelection = PositionInSelection(position); - if ((!inDragDrop) || !(0 == positionWasInSelection)) { + bool positionOnEdgeOfSelection = + (position == SelectionStart()) || (position == SelectionEnd()); + + if ((!inDragDrop) || !(0 == positionWasInSelection) || + (positionOnEdgeOfSelection && !moving)) { int selStart = SelectionStart(); int selEnd = SelectionEnd(); -- cgit v1.2.3