Always set register in map-based ODL

This commit is contained in:
Junegunn Choi 2016-05-31 15:27:27 +09:00
parent 44893a1901
commit cb5bed0e35
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -496,8 +496,8 @@ function! s:lod_map(map, names, prefix)
if v:count if v:count
call feedkeys(v:count, 'n') call feedkeys(v:count, 'n')
endif endif
if mode(1) == 'no'
call feedkeys('"'.v:register, 'n') call feedkeys('"'.v:register, 'n')
if mode(1) == 'no'
call feedkeys(v:operator) call feedkeys(v:operator)
endif endif
call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra) call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra)