Browse files

Fix "arrayp, nil" bug in yas-load-snippet-buffer.

  • Loading branch information...
1 parent 9503c33 commit 7130d9c3653a1102df6b3b2f71eff9ddefb2ac11 @monsanto monsanto committed Sep 23, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 yasnippet.el
5 yasnippet.el
@@ -2598,11 +2598,10 @@ whether (and where) to save the snippet, then quit the window."
(setf (yas--template-file yas--editing-template) buffer-file-name)))))
(when interactive
- (quit-window interactive)
(yas--message 3 "Snippet \"%s\" loaded for %s."
(yas--template-name yas--editing-template)
- (yas--table-name (yas--template-table yas--editing-template)))))
+ (yas--table-name (yas--template-table yas--editing-template)))
+ (quit-window interactive)))
(defun yas-tryout-snippet (&optional debug)
"Test current buffers's snippet template in other buffer."

0 comments on commit 7130d9c

Please sign in to comment.