Skip to content

Mirror works weird #207

@residentsummer

Description

@residentsummer

Consider the following snippet:

version 1
snippet logj Log object as JSON
    import json; logger.${1:info}('$2: {o}'.format(o=json.dumps(${2}${3:, indent=4}${4:,default=unicode})))

When trying to expand it, I get the following:
screen shot 2015-08-30 at 12 10 17
screen shot 2015-08-30 at 12 10 29
screen shot 2015-08-30 at 12 10 39

As you can see, the region for the 3rd replacement is selected incorrectly (off by 3 chars == len('foo')). Am I doing it wrong, or is it a bug in snipmate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions