Fix "Keyword argument :when not one of" error
Occurs when expanding file templates with a :when clause. +file-templates--expand wasn't anticipating it; throwing that error.
This commit is contained in:
parent
f784ed3cbd
commit
aa70213f87
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ these properties:
|
||||||
;;
|
;;
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(cl-defun +file-templates--expand (pred &key project mode trigger ignore)
|
(cl-defun +file-templates--expand (pred &key project mode trigger ignore _when)
|
||||||
"Auto insert a yasnippet snippet into current file and enter insert mode (if
|
"Auto insert a yasnippet snippet into current file and enter insert mode (if
|
||||||
evil is loaded and enabled)."
|
evil is loaded and enabled)."
|
||||||
(when (and pred (not ignore))
|
(when (and pred (not ignore))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue