Skip to content

Strange behavior in (at least) JSON files #231

Closed
@dsifford

Description

I've recently noticed a strange behavior of this plugin in JSON files. It's easily reproducible using the following contents...

{
    "foo": "bar",
    "foo": "bar"
}

What happens

(| = cursor)

{
    "foo": "bar",
    |
    "foo": "bar"
}

In insert mode, type "

{
    "foo": "bar",
    
    "|foo": "bar"
}

What I'd expect to happen

Since, the next " comes after a line break, I wouldn't expect the plugin to jump my cursor there. Instead, I'd expect this...

{
    "foo": "bar",
    "|
    "foo": "bar"
}

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