mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
runtime(netrw): prevent E11 on FocusGained autocommand (#13718)
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
GitHub
parent
ef07a7651e
commit
fbd72d2d47
@@ -10963,6 +10963,10 @@ fun! s:LocalBrowseRefresh()
|
|||||||
" call Dret("s:LocalBrowseRefresh : don't refresh when focus not on netrw window")
|
" call Dret("s:LocalBrowseRefresh : don't refresh when focus not on netrw window")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
if !empty(getcmdwintype())
|
||||||
|
" cannot move away from cmdline window, see :h E11
|
||||||
|
return
|
||||||
|
endif
|
||||||
if exists("s:netrw_events") && s:netrw_events == 1
|
if exists("s:netrw_events") && s:netrw_events == 1
|
||||||
" s:LocalFastBrowser gets called (indirectly) from a
|
" s:LocalFastBrowser gets called (indirectly) from a
|
||||||
let s:netrw_events= 2
|
let s:netrw_events= 2
|
||||||
|
Reference in New Issue
Block a user