Merge pull request #35 from wilywampa/invalidate
Fix invalidate() being overridden by autocmd
This commit is contained in:
commit
b6bdd0f2d0
@ -55,6 +55,7 @@ let g:repeat_reg = ['', '']
|
|||||||
" Special function to avoid spurious repeats in a related, naturally repeating
|
" Special function to avoid spurious repeats in a related, naturally repeating
|
||||||
" mapping when your repeatable mapping doesn't increase b:changedtick.
|
" mapping when your repeatable mapping doesn't increase b:changedtick.
|
||||||
function! repeat#invalidate()
|
function! repeat#invalidate()
|
||||||
|
autocmd! repeat_custom_motion
|
||||||
let g:repeat_tick = -1
|
let g:repeat_tick = -1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user