* fixed issue 68

(http://code.google.com/p/yasnippet/issues/detail?id=68)
This commit is contained in:
capitaomorte 2009-07-27 10:47:13 +00:00
parent b104c6b5ff
commit 0e74b208c8

View File

@ -877,7 +877,7 @@ TEMPLATES is a list of `yas/template'."
nil
nil))))
(when chosen
(nth (position chosen formatted-choices) choices)))))
(nth (position chosen formatted-choices :test #'string=) choices)))))
(eval-when-compile (require 'dropdown-list nil t))
(defun yas/dropdown-prompt (prompt choices &optional display-fn)
@ -902,7 +902,7 @@ TEMPLATES is a list of `yas/template'."
nil
nil))))
(when chosen
(nth (position chosen formatted-choices) choices))))
(nth (position chosen formatted-choices :test #'string=) choices))))
(defun yas/no-prompt (prompt choices &optional display-fn)
(first choices))