Permalink
Browse files

Fix compatibility with ido-ubiquitous.

ido-ubiquitous adds a defadvice that sets the default output of ido-completing-read
to "". A workaround is to explicitly specify the default value in the parameters to ido-completing-read.
  • Loading branch information...
1 parent 4ae8eba commit 187a9c51dae2960c9dedfd804b7e308f78b3f034 @nonsequitur committed Aug 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 smex.el
View
@@ -133,7 +133,8 @@ Set this to nil to disable fuzzy matching."
(ido-enable-prefix nil)
(ido-enable-flex-matching smex-flex-matching)
(ido-max-prospects 10))
- (ido-completing-read (smex-prompt-with-prefix-arg) choices nil nil initial-input)))
+ (ido-completing-read (smex-prompt-with-prefix-arg) choices nil nil
+ initial-input nil (car choices))))
(defun smex-prompt-with-prefix-arg ()
(if (not current-prefix-arg)

0 comments on commit 187a9c5

Please sign in to comment.