Skip to content

Commit

Permalink
counsel.el (counsel-org-goto--get-headlines): Simplify code
Browse files Browse the repository at this point in the history
Fixes #1013
  • Loading branch information
fabacino authored and abo-abo committed May 18, 2017
1 parent 299b851 commit 4d6e405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counsel.el
Expand Up @@ -2389,7 +2389,7 @@ to custom."
(when (eq counsel-org-goto-display-style 'headline)
(setq name (concat (make-string level ?*) " " name)))
(setq name (counsel-org-goto--add-face name level))))
(push `(,name . ,(point-marker)) entries))
(push (cons name (point-marker)) entries))
(setq start-pos (outline-next-heading)))
(nreverse entries))))

Expand Down

0 comments on commit 4d6e405

Please sign in to comment.