From 0adc9b46683fe1e824def77ccdab3512c08803ea Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 25 Dec 2016 17:12:20 +0900 Subject: [PATCH] fix :doautocmd usage --- 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 4ec38d6..2887e50 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 * + 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 * + doautocmd WinEnter endif endfunction