diff options
| author | noctuid <noct@openmailbox.org> | 2018-04-28 16:41:16 -0400 |
|---|---|---|
| committer | noctuid <noct@openmailbox.org> | 2018-04-28 16:41:16 -0400 |
| commit | 8d5d88fc7a75ff3e96802b06a1a6507952103794 (patch) | |
| tree | d92e6a22238cdd2b96d9f89ce13d18f44af94865 | |
| parent | 66c7da54fbd8a0e935736ca3a07e3d9a24337ea5 (diff) | |
Fix evil-set-jump called with an argument
Previously, it would always push the current position.
| -rw-r--r-- | evil-jumps.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/evil-jumps.el b/evil-jumps.el index 7977f74..cce75cd 100644 --- a/evil-jumps.el +++ b/evil-jumps.el @@ -230,7 +230,10 @@ POS defaults to point." (cl-loop repeat idx do (ring-remove target-list)) (setf (evil-jumps-struct-idx struct) -1)) - (evil--jumps-push))) + (save-excursion + (when pos + (goto-char pos)) + (evil--jumps-push)))) (defun evil--jump-backward (count) (let ((count (or count 1))) |
