branch: externals/ivy commit ee7f7f8c796a751feac092a108feff835c8b32fb Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy-overlay.el (ivy-display-function-overlay): Check org offset based on Emacs version --- ivy-overlay.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ivy-overlay.el b/ivy-overlay.el index 2da1306716..f553cc7251 100644 --- a/ivy-overlay.el +++ b/ivy-overlay.el @@ -152,7 +152,8 @@ Hide the minibuffer contents and cursor." (string-remove-prefix "\n" str) (+ (if (and (eq major-mode 'org-mode) - (bound-and-true-p org-indent-mode)) + (bound-and-true-p org-indent-mode) + (version< emacs-version "28.1")) (if (org-at-heading-p) (1- (org-current-level)) (* org-indent-indentation-per-level (or (org-current-level) 1)))