]> code.delx.au - gnu-emacs-elpa/commit
Fix fields following $0 + region insertion
authorNoam Postavsky <npostavs@users.sourceforge.net>
Wed, 27 Apr 2016 03:26:00 +0000 (23:26 -0400)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Sun, 1 May 2016 00:19:12 +0000 (20:19 -0400)
commitbeb2ba4d7feceaa3669035ce24c23ed9e805a9a0
tree22be94dc17a4ee964f25740d7f0838388bf00095
parentdb4cd31a1104890b5cb27e6ae230498288b7dd51
Fix fields following $0 + region insertion

When inserting text due to a  non-nil yas-wrap-around-region and the
snippet had fields occuring later in the buffer than $0, the insertion
of the text was shifting the location of later fields, thus invalidating
the calculation of yas--dollar-regions.

* yasnippet.el (yas--simple-mirror-parse-create): Don't insert text fo
yas-wrap-around-region here.
(yas--snippet-parse-create): Do it here, after deleting
`yas--dollar-regions`, instead.
yasnippet.el