From a01b5eb76ca4a985efea1f4c07619bbc8186c5e2 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Fri, 27 Feb 2009 15:20:45 +0000 Subject: [PATCH] Make initial selection for drop-down. Thanks Brandon Moore. --- yasnippet.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index 8efcd96..4112a2e 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1820,7 +1820,7 @@ handle the end-of-buffer error fired in it by calling (save-window-excursion (unwind-protect (let ((candidate-count (length candidates)) - done key selidx) + done key (selidx 0)) (while (not done) (unless (dropdown-list-at-point candidates selidx) (switch-to-buffer (setq temp-buffer (get-buffer-create "*selection*"))