Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Contiguous tabstops not working as expected (2nd selects part of 1st) #236

Description

@kswedberg

Prerequisites

Description

Backspacing on second tabstop deletes part of text in first tabstop when tabstops are contiguous.

Steps to Reproduce

  1. Create a simple "foo" snippet, such as:
  "foo":
    prefix: "foo"
    body: """
    ${2:bar}${3:baz}
    """
  1. Open a new file and change the syntax to the one the snippet was placed under.
  2. Activate the "foo" snippet
  3. Type something of 2 characters or more to replace "bar" ("xyzz" for this example)
  4. Tab to "baz"

Expected behavior: [What you expect to happen]
Only "baz" should be selected for replacement

Actual behavior: [What actually happens]
"yzzbaz" is selected for replacement. Only the first character of the first tabstop replacement ("x") is left unselected.

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Versions

Atom 1.17.0
MacOs Sierra 10.12.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions