mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
bugfix: error in yas/add-template when omit-items was used in yas/define-menu
This commit is contained in:
@@ -1078,9 +1078,10 @@ keybinding)."
|
||||
|
||||
;; Update trigger & keybinding in the menu-binding pair
|
||||
;;
|
||||
(setf (getf (cdr (car menu-binding-pair)) :keys)
|
||||
(or (and keybinding (key-description keybinding))
|
||||
(and key (concat key yas/trigger-symbol))))
|
||||
(unless (eq (cdr menu-binding-pair) :none)
|
||||
(setf (getf (cdr (car menu-binding-pair)) :keys)
|
||||
(or (and keybinding (key-description keybinding))
|
||||
(and key (concat key yas/trigger-symbol)))))
|
||||
|
||||
(puthash (yas/template-uuid template) template (yas/table-uuidhash table))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user