autoClosingPairs not keeping up (possibly due to cursor animation?)
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: [[|]
Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
Bummer, that's very annoying behavior! Thanks for reporting the issue, @nyaray .
Do you happen to have any vim plugins running? Or any customizations to your Oni / vim config?
No worries, it's the least I can do.
Yeah, I do have some plugins and vim settings. I could move those and attempt a repro on a pure Oni-setup if you want.
I had a similar issue because I had jiangmiao/auto-pairs in my vimrc, and the two weren't playing nicely together.
Haven't had any oni issues since deactivating the plugin in my vimrc.