fix :doautocmd usage
This commit is contained in:
parent
20e5b052c0
commit
0adc9b4668
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user