summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ido.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index a0308e3ddfb..233474fd0a0 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -2511,6 +2511,7 @@ for first matching file."
(if (and res (not (eq res t)))
(setq res (ido-sort-merged-list res auto)))
(when (and (or ido-rotate-temp ido-rotate-file-list-default)
+ (listp res)
(> (length text) 0))
(let ((elt (assoc text res)))
(when (and elt (not (eq elt (car res))))