tpope / vim-repeat

repeat.vim: enable repeating supported plugin maps with "."
http://www.vim.org/scripts/script.php?script_id=2136
2.58k stars 81 forks source link

Fix repeat after undo #79

Closed lacygoill closed 1 year ago

lacygoill commented 4 years ago

This PR tries to fix the issue #63. It delays the ticks synchronization until the next TextChanged, which is necessary because feedkeys() does not execute the undo command immediately. See this comment for more context.

lacygoill commented 4 years ago

If someone could confirm whether it fixes the issue and/or it creates a new issue, that would help.

svermeulen commented 4 years ago

Thank you! I also attempted to fix this way back in 2018 (which is still waiting approval) but your approach sounds better. I'll start using your fork to do some extra QA on it until this gets approved

Hopefully this PR gets looked at sooner than mine. Would love for this to get merged.

svermeulen commented 4 years ago

I should also mention that this does fix the issue for me as well