Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

autoClosingPairs not keeping up (possibly due to cursor animation?) #2291

Open
@nyaray

Description

Oni Version: 0.3.4
Operating System: macOS 10.12.6

Sorry if I missed a previous issue, but I tried searching and didn't find it.

Describe your issue

When typing [] in quick succession, with AutoPairs enabled and active for the characters mentioned, I get []] in my buffer.

It looks as if there's something funky going on with the cursor's highlight-animation (which I can't find how to disable...), because it behaves differently depending on the timing when typing the mentioned pair, but I can only reliably reproduce the []] result.

Expected behaviour

I expect [] to produce [] in my buffer, regardless of the speed at which it's typed.

Actual behaviour

If I type [] quickly enough, []] is instead inserted in my buffer, with the cursor (shown as |) placed like this: []|]

Steps to reproduce

Type [ and ] in quick succession.

⭐️ Bonus issue (probably the same) ⭐️

I can produce [[] reliably by quickly double tapping [. The cursor ends up like this: [[|]

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions