* lisp/ido.el (ido-set-matches-1): Only check first character of
item if it's non-empty.
Copyright-paperwork-exempt: yes
(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)