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

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

[elpa] master a73e24d 288/399: Do not insert initial input if nil


From: Oleh Krehel
Subject: [elpa] master a73e24d 288/399: Do not insert initial input if nil
Date: Sat, 20 Jul 2019 14:57:42 -0400 (EDT)

branch: master
commit a73e24deff45aa1bfc20fd31e7fe70d8735e71e2
Author: Dario Gjorgjevski <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Do not insert initial input if nil
    
    An example where this occurs:
    
    1. Start counsel-find-file;
    2. Go to root and choose to SSH somewhere; and
    3. When prompted with available hosts, cancel.
    
    Fixes #2086
---
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 770c6ba..8070eb3 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2372,7 +2372,8 @@ See `completion-in-region' for further information."
                          :unwind (lambda ()
                                    (unless (eq ivy-exit 'done)
                                      (goto-char ivy-completion-beg)
-                                     (insert initial)))
+                                     (when initial
+                                       (insert initial))))
                          :caller 'ivy-completion-in-region)
                t))))))
 



reply via email to

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