Ver código fonte

Better handling of inherit-input-method

Now ido-cr+ only falls back if there's actually an input method to
inherit.
Ryan C. Thompson 7 anos atrás
pai
commit
08a149a19a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      ido-completing-read+.el

+ 2 - 2
ido-completing-read+.el

@@ -521,9 +521,9 @@ completion for them."
     (condition-case sig
         (progn
           ;; Check a bunch of fallback conditions
-          (when inherit-input-method
+          (when (and inherit-input-method current-input-method)
             (signal 'ido-cr+-fallback
-                    '("ido cannot handle non-nil INHERIT-INPUT-METHOD")))
+                    '("ido cannot handle alternate input methods")))
 
           ;; Check for black/white-listed collection function
           (when (functionp collection)