summaryrefslogtreecommitdiff
path: root/helm-org.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-12-21 07:10:04 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-12-21 07:10:04 +0100
commit165f56c7c19989eb2d99a652dd8320af85a333d0 (patch)
treeea4646d3ebc90b5b7473f749a3bbfbaf4c6603f0 /helm-org.el
parent79597ef405d661325d9f7a327705719171dca24b (diff)
Fix org-get-outline-path call (#1294).
* helm-org.el (helm-org--get-candidates-in-file): Apply the args when parents is nil and not the contrary.
Diffstat (limited to 'helm-org.el')
-rw-r--r--helm-org.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-org.el b/helm-org.el
index 12fe239c..f52f3606 100644
--- a/helm-org.el
+++ b/helm-org.el
@@ -141,8 +141,8 @@ NOTE: This will be slow on large org buffers."
collect (cons (propertize
(org-format-outline-path
(append (apply #'org-get-outline-path
- (and parents
- (list t level heading)))
+ (unless parents
+ (list t level heading)))
(list heading))
width file) 'helm-real-display heading)
(point-marker))))))))