]> code.delx.au - gnu-emacs-elpa/blobdiff - yasnippet.el
Fix issue reported in http://stackoverflow.com/questions/9298866/emacs-yasnippet...
[gnu-emacs-elpa] / yasnippet.el
old mode 100644 (file)
new mode 100755 (executable)
index 8456b75..134c2a7
@@ -2133,7 +2133,10 @@ object satisfying `yas/field-p' to restrict the expansion to."
 If expansion fails, execute the previous binding for this key"
   (interactive)
   (setq yas/condition-cache-timestamp (current-time))
-  (let* ((vec (this-command-keys-vector))
+  (let* ((yas/prefix current-prefix-arg)
+         (vec (subseq (this-command-keys-vector) (if current-prefix-arg
+                                                     universal-argument-num-events
+                                                   0)))
          (templates (mapcan #'(lambda (table)
                                 (yas/fetch table vec))
                             (yas/get-snippet-tables))))