We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65ee835 commit fc7d1d9Copy full SHA for fc7d1d9
autoload/vital/_easymotion/HitAHint/Motion.vim
@@ -106,13 +106,15 @@ function! s:move_to_winpos(winpos) abort
106
let winnr = str2nr(winnr_str)
107
let is_win_moved = !(winnr is# winnr())
108
if is_win_moved
109
- doautocmd WinLeave *
+ if exists('#WinLeave')
110
+ doautocmd WinLeave *
111
+ endif
112
call s:move_to_win(winnr)
113
else
114
normal! m`
115
endif
116
call cursor(pos)
- if is_win_moved
117
+ if is_win_moved && exists('#WinEnter')
118
doautocmd WinEnter *
119
120
endfunction
0 commit comments