onivim/oni

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

Open

#2.291 geöffnet am 6. Juni 2018

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (336 Forks)batch import
bugdaily-editor-blockerhelp wanted

Repository-Metriken

Stars
 (11.389 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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: [[|]

Contributor Guide