branch: master
commit 215922e5fb038052c2ba756bcb2cf42332ade9b0
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--sort): Also check this-command
Fixes #1294
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index a64f90b..32135f2 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2851,7 +2851,8 @@ The alist VAL is a sorting function with the signature of
All CANDIDATES are assumed to match NAME."
(let ((key (or (ivy-state-caller ivy-last)
(when (functionp (ivy-state-collection ivy-last))
- (ivy-state-collection ivy-last))))
+ (ivy-state-collection ivy-last))
+ this-command))
fun)
(cond ((and ivy--flx-featurep
(eq ivy--regex-function 'ivy--regex-fuzzy))