oni icon indicating copy to clipboard operation
oni copied to clipboard

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

Open nyaray opened this issue 8 years ago • 4 comments

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

nyaray avatar Jun 06 '18 17:06 nyaray

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.

oni-bot avatar Jun 06 '18 17:06 oni-bot

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?

bryphe avatar Jun 09 '18 16:06 bryphe

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.

nyaray avatar Jun 09 '18 17:06 nyaray

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.

hsadoyan avatar Jun 25 '18 12:06 hsadoyan