mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
Revert order of feedkeys calls to fix counts
Since we are using the `i` flag, the feedkeys calls insert the keys instead of appending. That's why we need to insert the second part of the command before inserting the first part in front of it.
This commit is contained in:
parent
b01aafbd8d
commit
7568a9604b
|
|
@ -92,8 +92,8 @@ function! repeat#run(count)
|
|||
if ((v:version == 703 && has('patch100')) || (v:version == 704 && !has('patch601')))
|
||||
exe 'norm ' . r . cnt . s
|
||||
else
|
||||
call feedkeys(r . cnt, 'ni')
|
||||
call feedkeys(s, 'i')
|
||||
call feedkeys(r . cnt, 'ni')
|
||||
endif
|
||||
else
|
||||
if ((v:version == 703 && has('patch100')) || (v:version == 704 && !has('patch601')))
|
||||
|
|
|
|||
Loading…
Reference in a new issue