Skip to content

Conversation

@mosquito-magnet
Copy link

On yas-new-snippet, if yas-wrap-around-region is t and
yas-new-snippet-default has its default value, the selected region is
inserted twice: Once for yas-selected-text and once for $0.

The yas-new-snippet-default snippet is a special usage scenario, where
values of yas-wrap-around-region other than nil don't make much sense,
so override it.

On yas-new-snippet, if yas-wrap-around-region is t and
yas-new-snippet-default has its default value, the selected region is
inserted twice: Once for yas-selected-text and once for $0.

The yas-new-snippet-default snippet is a special usage scenario, where
values of yas-wrap-around-region other than nil don't make much sense,
so override it.
@nfedyashev
Copy link

+1 I also have this issue. Thanks for working on it @mosquito-magnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants