From af9786ee5780bf0cbafbd7b341c2b5234d18c1c0 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 25 Dec 2016 22:50:22 +0900 Subject: [PATCH] add silent to :doautocmd fix #294 --- autoload/vital/_easymotion/HitAHint/Motion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vital/_easymotion/HitAHint/Motion.vim b/autoload/vital/_easymotion/HitAHint/Motion.vim index 2887e50..0e803d5 100644 --- a/autoload/vital/_easymotion/HitAHint/Motion.vim +++ b/autoload/vital/_easymotion/HitAHint/Motion.vim @@ -135,7 +135,7 @@ function! s:move_to_winpos(winpos) abort let is_win_moved = !(winnr is# winnr()) if is_win_moved if exists('#WinLeave') - doautocmd WinLeave + silent doautocmd WinLeave endif call s:move_to_win(winnr) else @@ -143,7 +143,7 @@ function! s:move_to_winpos(winpos) abort endif call cursor(pos) if is_win_moved && exists('#WinEnter') - doautocmd WinEnter + silent doautocmd WinEnter endif endfunction