aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-03-09 03:11:53 +0000
committernyamatongwe <devnull@localhost>2000-03-09 03:11:53 +0000
commit8c49e08b30cd5e2edd2eb0b28c567db457e72df8 (patch)
treeb5248ab1787034074cc782400587c49666537b62 /src
parent0b2d7bed9cba3082dc75c7405b042c7426e3cf83 (diff)
downloadscintilla-mirror-8c49e08b30cd5e2edd2eb0b28c567db457e72df8.tar.gz
Drag and drop copy can now be done to edge of selection.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx6
1 files changed, 5 insertions, 1 deletions
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();