branch: master
commit a66f15e6c975a4370877df272c1ae87490835d28
Author: Bao Haojun <baohao...@lixiang.com>
Commit: Noam Postavsky <npost...@users.sourceforge.net>

    Fix yas-insert-snippet for keyless snippets
    
    * yasnippet.el (yas--table-templates): Get snippets from uuidhash
    table too.
    
    Copyright-paperwork-exempt: yes
---
 yasnippet.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/yasnippet.el b/yasnippet.el
index 3bbb94d..02886ca 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1399,6 +1399,9 @@ conditions to filter out potential expansions."
                                 (push (cons name template) acc))
                             namehash))
                (yas--table-hash table))
+      (maphash #'(lambda (uuid template)
+                   (push (cons uuid template) acc))
+               (yas--table-uuidhash table))
       (yas--filter-templates-by-condition acc))))
 
 (defun yas--templates-for-key-at-point ()

Reply via email to