Просмотр исходного кода

Make sure completing-read-function is never set to nil

If "ido-ubiquitous-fallback-completing-read-function" is nil, just use
"completing-read-default".
Ryan C. Thompson 11 лет назад
Родитель
Сommit
51d18b193a
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      ido-ubiquitous.el

+ 2 - 1
ido-ubiquitous.el

@@ -173,7 +173,8 @@
   (setq completing-read-function
 	(if ido-ubiquitous-mode
 	    'completing-read-ido
-	  ido-ubiquitous-fallback-completing-read-function)))
+	  (or ido-ubiquitous-fallback-completing-read-function
+              'completing-read-default))))
 
 (defcustom ido-ubiquitous-max-items 5000
   "Max collection size to use ido-ubiquitous on.