Fix #491 - Lazy-loading with omaps

This commit is contained in:
Junegunn Choi 2016-05-31 12:44:48 +09:00
parent 765a2d21d3
commit 44893a1901
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -493,6 +493,13 @@ 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')
endif
if mode(1) == 'no'
call feedkeys('"'.v:register, 'n')
call feedkeys(v:operator)
endif
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra) call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)
endfunction endfunction