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.

Multi-cursor, multi-line snippets have indents eaten when certain characters are input #283

Description

@rhinopotamus

Prerequisites

Description

Okay, so this is weird.
I have a multi-line snippet with a multi-cursor tab stop:

'\\begin{}...\\end{}':
    'prefix': '\\begin'
    'body': '\\\\begin{${1:env}}$2\n\t$0\n\\\\end{${1:env}}'

This works fine and properly inserts the snippet with proper indentation of the last line. However, if the next character I type is any of c d e m n o t u (and no other letters!), the indentation on the last line gets eaten.

Here's a little video that I hope will help clarify the actual behavior:
bug

Steps to Reproduce

Expected behavior: Should preserve the indentation on the last line.

Actual behavior: The weird thing described above.

Reproduces how often: 100%

Versions

Atom version 1.32.2, Mac OS X 10.14.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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