mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim-patch:fbd72d2d4725
runtime(netrw): prevent E11 on FocusGained autocommand (vim/vim#13718)
fbd72d2d47
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
f7bc8bd4d1
commit
18933fc47f
@ -10853,6 +10853,10 @@ fun! s:LocalBrowseRefresh()
|
||||
" call Dret("s:LocalBrowseRefresh : don't refresh when focus not on netrw window")
|
||||
return
|
||||
endif
|
||||
if !empty(getcmdwintype())
|
||||
" cannot move away from cmdline window, see :h E11
|
||||
return
|
||||
endif
|
||||
if exists("s:netrw_events") && s:netrw_events == 1
|
||||
" s:LocalFastBrowser gets called (indirectly) from a
|
||||
let s:netrw_events= 2
|
||||
|
Loading…
Reference in New Issue
Block a user