Fix loading on c-operator

Close #518
This commit is contained in:
Junegunn Choi 2016-09-11 12:04:08 +09:00
parent 561518fd8c
commit f4381fb748
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -508,14 +508,17 @@ function! s:lod_map(map, names, prefix)
endif endif
let extra .= nr2char(c) let extra .= nr2char(c)
endwhile endwhile
if v:count
call feedkeys(v:count, 'n') let prefix = v:count ? v:count : ''
endif let prefix .= '"'.v:register.a:prefix
call feedkeys('"'.v:register, 'n')
if mode(1) == 'no' if mode(1) == 'no'
call feedkeys(v:operator) if v:operator == 'c'
let prefix = "\<esc>" . prefix
endif endif
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra) let prefix .= v:operator
endif
call feedkeys(prefix, 'n')
call feedkeys(substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
endfunction endfunction
function! plug#(repo, ...) function! plug#(repo, ...)