mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-05 20:43:08 +00:00
(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.
This commit is contained in:
parent
1c686c993f
commit
ed784c53bc
@ -1176,7 +1176,7 @@ If you do this twice in the same position, the selection is killed."
|
||||
(progn
|
||||
;; 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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user