mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 05:03:04 +00:00
Avoid to indent snippets having setup `(yas-indent-line 'fixed)'
Avoid `yas--auto-fill' call to `yas--update-mirrors' without setting the snippet environment. * yasnippet.el (yas--auto-fill): Reinstate snippet environment before calling `yas--update-mirrors'.
This commit is contained in:
parent
75cbf7251b
commit
7365f9ed40
@ -3635,7 +3635,10 @@ field start. This hook does nothing if an undo is in progress."
|
||||
(narrow-to-region beg end)
|
||||
(mapc #'yas--restore-marker-location remarkers)
|
||||
(mapc #'yas--restore-overlay-location reoverlays))
|
||||
(mapc #'yas--update-mirrors snippets))))
|
||||
(mapc (lambda (snippet)
|
||||
(yas--letenv (yas--snippet-expand-env snippet)
|
||||
(yas--update-mirrors snippet)))
|
||||
snippets))))
|
||||
|
||||
|
||||
;;; Apropos protection overlays:
|
||||
|
Loading…
x
Reference in New Issue
Block a user