Browse Source

Fix an error in a rare edge case

Ryan C. Thompson 9 years ago
parent
commit
e5108573cc
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ido-ubiquitous.el

+ 4 - 1
ido-ubiquitous.el

@@ -667,7 +667,10 @@ completion for them."
             (if (or ido-ubiquitous-allow-on-functional-collection
                     (memq ido-ubiquitous-active-override
                           '(enable enable-old)))
-                (setq collection (all-completions "" collection predicate))
+                (setq collection (all-completions "" collection predicate)
+                      ;; `all-completions' will apply the predicate,
+                      ;; so it now becomes redundant.
+                      predicate nil)
               (signal 'ido-ubiquitous-fallback
                       "COLLECTION is a function and there is no override")))
           (let ((ido-ubiquitous-enable-next-call t))