mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Closes #347: can't expect THIS-COMMAND to have valid value in YAS-BUFFER-LOCAL-CONDITION
This commit is contained in:
parent
4f99f9dc20
commit
d9f966a220
@ -415,7 +415,8 @@ Attention: These hooks are not run when exiting nested/stacked snippet expansion
|
||||
(defvar yas-buffer-local-condition
|
||||
'(if (and (or (fourth (syntax-ppss))
|
||||
(fifth (syntax-ppss)))
|
||||
(eq (symbol-function this-command) 'yas-expand-from-trigger-key))
|
||||
this-command
|
||||
(eq this-command 'yas-expand-from-trigger-key))
|
||||
'(require-snippet-condition . force-in-comment)
|
||||
t)
|
||||
"Snippet expanding condition.
|
||||
|
Loading…
x
Reference in New Issue
Block a user