onivim/oni

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

Open

#2,291 创建于 2018年6月6日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)TypeScript (11,389 star) (336 fork)batch import
bugdaily-editor-blockerhelp wanted

描述

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

贡献者指南