Skip to content

Commit

Permalink
Fix: Update for change to Helm.
Browse files Browse the repository at this point in the history
Fixes #23.  Thanks to @adam52.
  • Loading branch information
alphapapa committed Apr 16, 2018
1 parent 68f0172 commit ecf5ad5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ Run one of the rifle commands, type some words, and results will be displayed, g

* Changelog :noexport_1:

** 1.5.1

*Fixes*
+ Update for change to Helm. Fixes [[https://github.com/alphapapa/helm-org-rifle/issues/23][#23]]. Thanks to [[https://github.com/adam52][@adam52]].

** 1.5.0

*Additions*
Expand Down
4 changes: 2 additions & 2 deletions helm-org-rifle.el
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ are searched; they are not filtered with
(if (= 0 helm-exit-status)
;; Candidate selected; close other new buffers
(let ((candidate-source (helm-attr 'name (helm-get-current-source))))
(dolist (source (helm-get-sources))
(dolist (source helm-sources)
(unless (or (equal (helm-attr 'name source)
candidate-source)
(not (helm-attr 'new-buffer source)))
(kill-buffer (helm-attr 'buffer source)))))
;; No candidates; close all new buffers
(dolist (source (helm-get-sources))
(dolist (source helm-sources)
(when (helm-attr 'new-buffer source)
(kill-buffer (helm-attr 'buffer source))))))))))

Expand Down

0 comments on commit ecf5ad5

Please sign in to comment.