Merge pull request #308 from monsanto/yas-load-snippet-buffer-fix

Fix: "arrayp, nil" bug in yas-load-snippet-buffer.
This commit is contained in:
João Távora 2012-09-23 08:50:08 -07:00
commit 42ed181f4a

View File

@ -2598,11 +2598,10 @@ whether (and where) to save the snippet, then quit the window."
default-file-name))) default-file-name)))
(setf (yas--template-file yas--editing-template) buffer-file-name))))) (setf (yas--template-file yas--editing-template) buffer-file-name)))))
(when interactive (when interactive
(quit-window interactive)
(yas--message 3 "Snippet \"%s\" loaded for %s." (yas--message 3 "Snippet \"%s\" loaded for %s."
(yas--template-name yas--editing-template) (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) (defun yas-tryout-snippet (&optional debug)
"Test current buffers's snippet template in other buffer." "Test current buffers's snippet template in other buffer."