Fix invalidate() being overridden by autocmd
This commit is contained in:
parent
5eba0f19c8
commit
80261bc531
@ -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