onivim/oni

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

開放

#2,291 建立於 2018年6月6日

 (4 則留言) (0 個反應) (0 位負責人)TypeScript (297 個分叉)batch import
bugdaily-editor-blockerhelp wanted

倉庫指標

星標
 (11,246 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南