branch: master
commit fe34d2c70ec46ff31d6e56fcb0aa03387d4fac3a
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
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