Skip to content

Commit 0eeed15

Browse files
committed
Fix 'No matching autocommands' warning
1 parent 41bbb8c commit 0eeed15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/EasyMotion.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,9 @@ function! s:PromptUser(groups) "{{{
10951095
let lines_items = items(lines)
10961096
" }}}
10971097

1098+
" Invoke autocmd so the user can temporarily disable linters, etc.
1099+
silent doautocmd User EasyMotionPromptBegin
1100+
10981101
" -- Put labels on targets & Get User Input & Restore all {{{
10991102
" Save undo tree
11001103
let undo_lock = EasyMotion#undo#save()
@@ -1148,6 +1151,9 @@ function! s:PromptUser(groups) "{{{
11481151
call undo_lock.restore()
11491152

11501153
redraw
1154+
1155+
" Invoke autocmd
1156+
silent doautocmd User EasyMotionPromptEnd
11511157
endtry "}}}
11521158

11531159
" -- Check if we have an input char ------ {{{

0 commit comments

Comments
 (0)