From a411c7222816da56339748bbdc642fc1c6e44766 Mon Sep 17 00:00:00 2001 From: martian-f Date: Tue, 27 Oct 2020 21:05:05 +0100 Subject: [PATCH] Don't restrict org outline path length Limiting candidate length doesn't seem to be used in other sources, and doesn't seem useful here. The leaf node is likely the most interesting part of the candidate. Also helm-window seems to be not yet created when calling helm-org--get-candidates-in-file, trying to determine the width for it will then determine it for the current window instead, which might be much narrower. --- helm-org.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helm-org.el b/helm-org.el index 527de0f..2b16e65 100644 --- a/helm-org.el +++ b/helm-org.el @@ -295,8 +295,7 @@ Get PARENTS as well when specified." ;; clear cache for new version of org-get-outline-path (and (boundp 'org-outline-path-cache) (setq org-outline-path-cache nil)) - (cl-loop with width = (window-width (helm-window)) - while (funcall search-fn) + (cl-loop while (funcall search-fn) for beg = (point-at-bol) for end = (point-at-eol) when (and fontify @@ -320,7 +319,7 @@ Get PARENTS as well when specified." (list heading)) (wrong-number-of-arguments (org-get-outline-path t t))) - width file) + 999 file) (if file (concat file (funcall match-fn 0)) (funcall match-fn 0)))