branch: master
commit 9e3c8554ee89197a05da2b0e99e2c4b82e7c3b37
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-make-magic-action): Fix bug
---
ivy.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/ivy.el b/ivy.el
index ce26c1d..121b793 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2860,14 +2860,11 @@ Possible choices are
'ivy-magic-slash-non-match-cd-selected,
This happens only when the input is empty.
The intention is to bind the result to keys that are typically
bound to `self-insert-command'."
- (let ((alist (assoc key
- (plist-get
- ivy--actions-list
- caller)))
- (action (nth 1 alist))
- (doc (concat (nth 2 alist)
- "\n\n"
- (documentation action))))
+ (let* ((alist (assoc key
+ (plist-get
+ ivy--actions-list
+ caller)))
+ (doc (nth 2 alist)))
`(lambda (&optional arg)
,doc
(interactive "p")