Merge pull request #35 from wilywampa/invalidate

Fix invalidate() being overridden by autocmd
This commit is contained in:
Tim Pope 2015-01-15 18:49:10 -06:00
commit b6bdd0f2d0

View File

@ -55,6 +55,7 @@ let g:repeat_reg = ['', '']
" Special function to avoid spurious repeats in a related, naturally repeating
" mapping when your repeatable mapping doesn't increase b:changedtick.
function! repeat#invalidate()
autocmd! repeat_custom_motion
let g:repeat_tick = -1
endfunction