Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters