Skip to content

Commit af9786e

Browse files
committed
add silent to :doautocmd
fix #294
1 parent a84412c commit af9786e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/vital/_easymotion/HitAHint/Motion.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ function! s:move_to_winpos(winpos) abort
135135
let is_win_moved = !(winnr is# winnr())
136136
if is_win_moved
137137
if exists('#WinLeave')
138-
doautocmd WinLeave
138+
silent doautocmd WinLeave
139139
endif
140140
call s:move_to_win(winnr)
141141
else
142142
normal! m`
143143
endif
144144
call cursor(pos)
145145
if is_win_moved && exists('#WinEnter')
146-
doautocmd WinEnter
146+
silent doautocmd WinEnter
147147
endif
148148
endfunction
149149

0 commit comments

Comments
 (0)