mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
avy.el (avy-action-goto): Don't push mark when region is active
* avy.el (avy-action-goto): When the region is active, the user probably doesn't want to move the mark. Fixes #84
This commit is contained in:
parent
e8cebf1616
commit
30067ddc09
4
avy.el
4
avy.el
@ -452,7 +452,9 @@ Set `avy-style' according to COMMMAND as well."
|
|||||||
|
|
||||||
(defun avy-action-goto (pt)
|
(defun avy-action-goto (pt)
|
||||||
"Goto PT."
|
"Goto PT."
|
||||||
(unless (= pt (point)) (push-mark))
|
(unless (or (= pt (point))
|
||||||
|
(region-active-p))
|
||||||
|
(push-mark))
|
||||||
(goto-char pt))
|
(goto-char pt))
|
||||||
|
|
||||||
(defun avy-action-mark (pt)
|
(defun avy-action-mark (pt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user