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
let extra .= nr2char(c)
endwhile
if v:count
call feedkeys(v:count, 'n')
endif
call feedkeys('"'.v:register, 'n')
let prefix = v:count ? v:count : ''
let prefix .= '"'.v:register.a:prefix
if mode(1) == 'no'
call feedkeys(v:operator)
if v:operator == 'c'
let prefix = "\<esc>" . prefix
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
function! plug#(repo, ...)