Commit ed784c53 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(mouse-save-then-kill): If the distance from the new

point to the mark is equal to the distance of point from the new
point, move point instead of the mark.
parent 1c686c99
......@@ -1176,7 +1176,7 @@ If you do this twice in the same position, the selection is killed."
;; Move whichever end of the region is closer to the click.
;; That is what xterm does, and it seems reasonable.
(if (< (abs (- new (point))) (abs (- new (mark t))))
(if (<= (abs (- new (point))) (abs (- new (mark t))))
(goto-char new)
(set-mark new))
(setq deactivate-mark nil)))
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