Skip to content

Wrong cursor position for some snippets sometimes #137

Open
@svermeulen

Description

@svermeulen

Given the following snippet:

{
  "if": {
    "prefix": ["if"],
    "body": [
      "if (${1})",
      "{",
      "\t${TM_SELECTED_TEXT}$0",
      "}"
    ]
  }
}

If this snippet is expanded, the cursor (which I will indicate as ^) sometimes ends up here if (^) (as expected) but most times it ends up here: if ()^.

I tried to reproduce this in vanilla vim with just the vsnip plugin, but it behaved correctly in this case, so it could be related to my config

I thought it might be related to the popup menu, but it doesn't seem to matter whether this is open or not

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions