Fix yas-insert-snippet for keyless snippets

* yasnippet.el (yas--table-templates): Get snippets from uuidhash
table too.

Copyright-paperwork-exempt: yes
This commit is contained in:
Bao Haojun 2019-07-18 22:42:02 +08:00 committed by Noam Postavsky
parent d91dd66f2a
commit a66f15e6c9

View File

@ -1399,6 +1399,9 @@ conditions to filter out potential expansions."
(push (cons name template) acc)) (push (cons name template) acc))
namehash)) namehash))
(yas--table-hash table)) (yas--table-hash table))
(maphash #'(lambda (uuid template)
(push (cons uuid template) acc))
(yas--table-uuidhash table))
(yas--filter-templates-by-condition acc)))) (yas--filter-templates-by-condition acc))))
(defun yas--templates-for-key-at-point () (defun yas--templates-for-key-at-point ()