Commit 9e6856a7 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(mouse-show-mark): Get positions to delete from mark

and point, not from mouse-drag-overlay.
parent 977bbd4d
......@@ -1068,8 +1068,7 @@ If MODE is 2 then do the same for lines."
(unless ignore
;; For certain special keys, delete the region.
(if (member key mouse-region-delete-keys)
(delete-region (overlay-start mouse-drag-overlay)
(overlay-end mouse-drag-overlay))
(delete-region (mark t) (point))
;; Otherwise, unread the key so it gets executed normally.
(setq unread-command-events
(nconc events unread-command-events))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment