coc-git icon indicating copy to clipboard operation
coc-git copied to clipboard

Cannot repeat key sequence because of command run by autocommand

Open przepompownia opened this issue 4 years ago • 2 comments

Reproduction:

  • install vim-repeat and coc-git
  • set autocmd CursorHold,BufWritePost * CocCommand git.refresh
  • do any mapping registered to repeat (except of assigned to git.refresh ;))
  • try to repeat the action defined by mapping
  • look at g:repeat_sequence

I get

g:repeat_sequence      <80><fd>S(coc-command-repeat)

instead of the action the mapping points to.

przepompownia avatar Dec 31 '20 13:12 przepompownia

Avoid use CursorHold with CocCommand.

chemzqm avatar Dec 31 '20 13:12 chemzqm

It may be a step that reduces the amount of unneeded overwritings g:repeat_sequence, but the problem still exists and probably it is issue of CoC, not only of this extension.

przepompownia avatar Dec 31 '20 13:12 przepompownia