summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Antolín <omar.antolin@gmail.com>2021-11-29 19:02:56 -0600
committerOmar Antolín <omar.antolin@gmail.com>2021-11-29 19:02:56 -0600
commit1ccf74ffdbb0dd34caa63022e92f947c09c49c86 (patch)
tree029ed1bae21b032c0e3df6604bb495c2a0a1c28b
parent0f674253a8a5452f355253bdfee56783c2b3949f (diff)
Fix small bug in the alist case of try-completion
-rw-r--r--orderless.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/orderless.el b/orderless.el
index d24e3b5..0719935 100644
--- a/orderless.el
+++ b/orderless.el
@@ -470,7 +470,7 @@ This function is part of the `orderless' completion style."
(when one
(throw 'orderless--many (cons string point)))
(setq one (car args) ;; first argument is key
- one (if (consp args) (car args) args) ;; alist
+ one (if (consp one) (car one) one) ;; alist
one (if (symbolp one) (symbol-name one) one)))
nil))
(when one