Handling 'y' repeat

This commit is contained in:
haya14busa 2014-01-19 17:59:30 +09:00
parent 1cf3f96f3c
commit 7faff893e2

View File

@ -1321,7 +1321,8 @@ function! s:EasyMotion(regexp, direction, visualmode, is_exclusive, ...) " {{{
endif
" Set tpope/vim-repeat
if s:current.is_operator == 1
if s:current.is_operator == 1 &&
\ !(v:operator ==# 'y' && match(&cpo, 'y') == -1)
silent! call repeat#set("\<Plug>(easymotion-dotrepeat)")
endif