mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 22:41:06 -08:00
Fix bug of 'mouse-drag-and-drop-region' to detect edges of region (Bug#31905)
* lisp/mouse.el (mouse-drag-and-drop-region): Detect both the beginning and the end of character of region during dragging text.
This commit is contained in:
parent
e292c0973c
commit
d289e7e38a
1 changed files with 2 additions and 2 deletions
|
|
@ -2515,9 +2515,9 @@ is copied instead of being cut."
|
||||||
(setq drag-but-negligible
|
(setq drag-but-negligible
|
||||||
(and (eq (overlay-buffer mouse-drag-and-drop-overlay)
|
(and (eq (overlay-buffer mouse-drag-and-drop-overlay)
|
||||||
buffer-to-paste)
|
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
|
(<= point-to-paste
|
||||||
(overlay-end mouse-drag-and-drop-overlay)))))
|
(overlay-end mouse-drag-and-drop-overlay)))))
|
||||||
|
|
||||||
;; Show a tooltip.
|
;; Show a tooltip.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue