Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ivy.el: Keep only one action for one key #1873

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions ivy.el
Expand Up @@ -1793,10 +1793,11 @@ candidates is updated after each input by calling COLLECTION.
CALLER is a symbol to uniquely identify the caller to `ivy-read'.
It is used, along with COLLECTION, to determine which
customizations apply to the current completion session."
(let ((extra-actions (delete-dups
(let ((extra-actions (cl-delete-duplicates
(append (plist-get ivy--actions-list t)
(plist-get ivy--actions-list this-command)
(plist-get ivy--actions-list caller)))))
(plist-get ivy--actions-list caller))
:key #'car :test #'equal)))
(when extra-actions
(setq action
(cond ((functionp action)
Expand Down