mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Adjust previous fix
* yasnippet.el (yas--indent): Call `beginning-of-line' before doing fixed indentation.
This commit is contained in:
parent
4467e934f3
commit
15761e85d6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user