neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 18933fc47febb3056d6591529d07444a77338c27
parent f7bc8bd4d1071e824eee21a2ac8ab87965f4a7c6
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Tue, 19 Dec 2023 23:20:27 +0100

vim-patch:fbd72d2d4725

runtime(netrw): prevent E11 on FocusGained autocommand (vim/vim#13718)

https://github.com/vim/vim/commit/fbd72d2d47257267bc6e3fe093ef8c225369ab79

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Mruntime/autoload/netrw.vim | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim @@ -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