question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cursor move delay on change command

See original GitHub issue

Originally posted here

Sometimes, when I go into insert mode with something that modifies the buffer length (ie change commands) and start typing too fast, the cursor does not update fast enough and it inserts text in the wrong place. For example, here I type ciwadditional but this happens: Peek 2020-09-04 20-14 I am on the latest commit of this branch.

This problem still happens with an empty init.vim and all vscode extensions disabled. Here, you can see the first time it ignores the “j”, and the second time it places “j” in the wrong spot after the cursor. I have slowed the gif down by 50%.

ezgif-4-441c936d1ae6

Edit: The more vscode plugins I have enabled, the worse the issue becomes. With all extensions disabled like above, the issue only happens 30% of the time, and usually with only one or two characters. With all extensions enabled, the issue becomes as bad as in the first screenshot.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
asvetliakovcommented, Sep 6, 2020

it should work fast at least with untitled file. curious

Well, i have 2 possible solutions here. Won’t mind to try both ? i’ll compile two PRs soon

0reactions
theol0403commented, Sep 6, 2020

Sure. I can easily compile myself as well if that saves you a step.

And yes it is very fast, it took me 10 tries to repro.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cursor move delay on change command · Issue #344 - GitHub
Sometimes, when I go into insert mode with something that modifies the buffer length (ie change commands) and start typing too fast, the...
Read more >
How to Fix Mouse Lag on Windows 10 | SoftwareKeep
You should see your mouse listed there. Right-click on your mouse and choose the Update driver option. Choose the option to look for...
Read more >
Cursor lags or jumps on specific drawings in AutoCAD products
Turn off Object Snap and use it only within command process by Shift + Right-Click to choose OSnap for the specific task.
Read more >
Setting mouse cursor with a delay from another thread
I want to change the mouse cursor to a busy state (hourglass, over the whole main form) when that happens. But this must...
Read more >
2022 Quick Guide to fix mouse lags in Windows 10, 11
Check article with full guide : http://windowsreport.com/ mouse - lag -windows-10/▻ Get DriverFix for FREE to always keep your drivers up to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found