]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug of 'mouse-drag-and-drop-region' to detect edges of region (Bug#31905)
authorTak Kunihiro <tkk@misasa.okayama-u.ac.jp>
Wed, 20 Jun 2018 07:27:50 +0000 (09:27 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 20 Jun 2018 07:27:50 +0000 (09:27 +0200)
* lisp/mouse.el (mouse-drag-and-drop-region): Detect both the
beginning and the end of character of region during dragging
text.

lisp/mouse.el

index 5c9056fb43d1889afa6ef2a901d66efc74f197a2..f749d12054b36675b1cbffcf1ded8c4e3c56fa29 100644 (file)
@@ -2515,9 +2515,9 @@ is copied instead of being cut."
             (setq drag-but-negligible
                   (and (eq (overlay-buffer mouse-drag-and-drop-overlay)
                            buffer-to-paste)
-                       (< (overlay-start mouse-drag-and-drop-overlay)
+                       (<= (overlay-start mouse-drag-and-drop-overlay)
                           point-to-paste)
-                       (< point-to-paste
+                       (<= point-to-paste
                           (overlay-end mouse-drag-and-drop-overlay)))))
 
           ;; Show a tooltip.