mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
bugfix: error in yas/add-template
when omit-items
was used in yas/define-menu
This commit is contained in:
parent
73073f9078
commit
ee398f4d5a
@ -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))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user