Adjust previous fix

* yasnippet.el (yas--indent): Call `beginning-of-line' before doing
fixed indentation.
This commit is contained in:
Noam Postavsky 2018-03-06 07:03:28 -05:00
parent 4467e934f3
commit 15761e85d6

View File

@ -4306,6 +4306,9 @@ The SNIPPET's markers are preserved."
(forward-line 1)
(let ((indent-line-function
(lambda ()
;; We need to be at beginning of line in order to
;; indent existing whitespace correctly.
(beginning-of-line)
(indent-to-column yas--indent-original-column))))
(yas--indent-region (line-beginning-position)
(point-max)