diff options
author | Christian Brabandt <cb@256bit.org> | 2023-12-19 20:22:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 20:22:18 +0100 |
commit | fbd72d2d47257267bc6e3fe093ef8c225369ab79 (patch) | |
tree | 394b88ad89d436b2239befcef12fb858f4161297 /runtime/autoload | |
parent | ef07a7651e324b8540f5e2bd7fa35fe059ea0434 (diff) |
runtime(netrw): prevent E11 on FocusGained autocommand (#13718)
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/netrw.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim index d22e59d36c..748ac22768 100644 --- a/runtime/autoload/netrw.vim +++ b/runtime/autoload/netrw.vim @@ -10963,6 +10963,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 |