summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ido.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index 1393d3b7107..07a5bcf7229 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -3802,9 +3802,10 @@ frame, rather than all frames, regardless of value of `ido-all-frames'."
(lambda (item)
(let ((name (ido-name item)))
(if (and (or non-prefix-dot
- (if (= (aref ido-text 0) ?.)
- (= (aref name 0) ?.)
- (/= (aref name 0) ?.)))
+ (and (> (length name) 0)
+ (if (= (aref ido-text 0) ?.)
+ (= (aref name 0) ?.)
+ (/= (aref name 0) ?.))))
(string-match re name))
(cond
((and (eq ido-cur-item 'buffer)