atom / whitespace

Atom whitespace package
MIT License
94 stars 67 forks source link

Interferes with simultaneous tab stop snippets #187

Open Aerijo opened 5 years ago

Aerijo commented 5 years ago

Prerequisites

Description

When using a snippet with simultaneous tab stops, and the active tab stop is the end of the document (no trailing newline) the newline will also be inserted in the other tab stops.

Steps to Reproduce

  1. Add this snippet to your snippets.cson

    "*":
    "has a transformed tab stop that occurs before the corresponding ordinary tab stop":
    prefix: 't16'
    body: """
    & ${1/(.)/\\u$1/} & ${1:q}
    """
  2. On the last line, expand the snippet t16

  3. Save

Expected behavior: [What you expect to happen]

& Q & q

Actual behavior: [What actually happens]

& Q
 & q

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

100%

Versions

Atom beta 1.35.0

Additional Information

This is more of a memo to get back to, it's not a very impactful bug.

rsese commented 5 years ago

Thanks @Aerijo :bow: