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:
Christian Wellenbrock 2015-04-03 12:30:43 +02:00
parent b01aafbd8d
commit 7568a9604b

View file

@ -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')))