Suppress errors in +ivy--set-jump-point-maybe-h

This commit is contained in:
Henrik Lissner 2019-08-17 15:58:36 -04:00
parent 2b3f522858
commit 2cd1c43217
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -109,11 +109,13 @@ immediately runs it on the current candidate (ending the ivy session)."
(add-hook! 'minibuffer-exit-hook
(defun +ivy--set-jump-point-maybe-h ()
(with-demoted-errors "Ivy error: %s"
(when (and (markerp +ivy--origin)
(not (equal (with-ivy-window (point-marker)) +ivy--origin)))
(not (equal (with-ivy-window (point-marker))
+ivy--origin)))
(with-current-buffer (marker-buffer +ivy--origin)
(better-jumper-set-jump +ivy--origin)))
(setq +ivy--origin nil)))
(setq +ivy--origin nil))))
(after! yasnippet
(add-to-list 'yas-prompt-functions #'+ivy-yas-prompt nil #'eq))