Inhibit recenter following org link when window isn't visible

This commit is contained in:
Henrik Lissner 2020-06-06 00:56:46 -04:00
parent e7678f4749
commit 59b60a4708
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -503,7 +503,8 @@ the exported output (i.e. formatters)."
org-follow-timestamp-link org-follow-timestamp-link
org-link-open-as-file org-link-open-as-file
org-link-search) org-link-search)
(recenter)) (when (get-buffer-window)
(recenter)))
(defadvice! +org--strip-properties-from-outline-a (orig-fn path &optional width prefix separator) (defadvice! +org--strip-properties-from-outline-a (orig-fn path &optional width prefix separator)
"Remove link syntax and fix variable height text (e.g. org headings) in the "Remove link syntax and fix variable height text (e.g. org headings) in the