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

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

[elpa] master fe34d2c 10/57: ivy.el (ivy-partial-or-done): Handle empty


From: Oleh Krehel
Subject: [elpa] master fe34d2c 10/57: ivy.el (ivy-partial-or-done): Handle empty input
Date: Tue, 19 May 2015 14:21:22 +0000

branch: master
commit fe34d2c70ec46ff31d6e56fcb0aa03387d4fac3a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-partial-or-done): Handle empty input
    
    Fixes #81
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 7838ab3..0f3a56d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -274,7 +274,7 @@ candidate."
   (interactive)
   (if (eq this-command last-command)
       (ivy-alt-done)
-    (let* ((parts (split-string ivy-text " " t))
+    (let* ((parts (or (split-string ivy-text " " t) (list "")))
            (postfix (car (last parts)))
            (completion-ignore-case t)
            (new (try-completion postfix



reply via email to

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