emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra 2d4d6d6 076/395: Use text, not "current", in


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 2d4d6d6 076/395: Use text, not "current", in -dispatching-done when no matches
Date: Thu, 25 Feb 2021 08:31:35 -0500 (EST)

branch: externals/ivy-hydra
commit 2d4d6d690702f943b4f71e0d2a6604d1eb6ef646
Author: Matt Kramer <mkramer@lbl.gov>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    Use text, not "current", in -dispatching-done when no matches
    
    Helpful, for example, in counsel-find-file if you want to dispatch an
    action on a file that doesn't exist.
    
    Fixes #2364
    Fixes #2365
---
 ivy.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index e9de309..ede57d3 100644
--- a/ivy.el
+++ b/ivy.el
@@ -787,7 +787,10 @@ candidate, not the prompt."
       (ivy-immediate-done)
     (setq ivy-current-prefix-arg current-prefix-arg)
     (delete-minibuffer-contents)
-    (cond ((or (> ivy--length 0)
+    (cond ((and (= ivy--length 0)
+                (eq this-command 'ivy-dispatching-done))
+           (ivy--done ivy-text))
+          ((or (> ivy--length 0)
                ;; the action from `ivy-dispatching-done' may not need a
                ;; candidate at all
                (eq this-command 'ivy-dispatching-done))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]