mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Respect yas-indent-line for mirror updates
* yasnippet.el (yas--mirror-update-display): Check yas-indent-line before indenting.
This commit is contained in:
parent
7b013dbbdb
commit
5534cab0b7
@ -4303,10 +4303,11 @@ When multiple expressions are found, only the last one counts."
|
||||
(yas--advance-start-maybe (yas--mirror-next mirror) (point))
|
||||
;; super-special advance
|
||||
(yas--advance-end-of-parents-maybe mirror-parent-field (point)))
|
||||
(when (eq yas-indent-line 'auto)
|
||||
(let ((yas--inhibit-overlay-hooks t))
|
||||
(yas--indent-region (yas--mirror-start mirror)
|
||||
(yas--mirror-end mirror)
|
||||
snippet)))))
|
||||
snippet))))))
|
||||
|
||||
(defun yas--field-update-display (field)
|
||||
"Much like `yas--mirror-update-display', but for fields."
|
||||
|
Loading…
x
Reference in New Issue
Block a user