mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Can't use yas/read-kbd-macro' in
yas/fallback', need to call `read-kbd-macro' with the string TAB directly, don't know why...
This commit is contained in:
parent
7c6ab3b82e
commit
50bcb8f2d8
@ -2102,8 +2102,10 @@ Common gateway for `yas/expand-from-trigger-key' and
|
||||
(let* ((yas/minor-mode nil)
|
||||
(yas/direct-keymaps nil)
|
||||
(keys-1 (this-command-keys-vector))
|
||||
(keys-2 (and from-trigger-key-p
|
||||
(yas/read-kbd-macro yas/trigger-key)))
|
||||
(keys-2 (and yas/trigger-key
|
||||
from-trigger-key-p
|
||||
(stringp yas/trigger-key)
|
||||
(read-kbd-macro yas/trigger-key)))
|
||||
(command-1 (and keys-1 (key-binding keys-1)))
|
||||
(command-2 (and keys-2 (key-binding keys-2)))
|
||||
;; An (ugly) safety: prevents infinite recursion of
|
||||
|
Loading…
x
Reference in New Issue
Block a user