neovim

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

commit 98e51d2e0d863873a28b540663cf2f487ff6559f
parent 90018d2b36b737287c1151239b4b1f56ef437a49
Author: Jaehwang Jung <tomtomjhj@gmail.com>
Date:   Sat, 13 Sep 2025 01:05:37 +0900

vim-patch:6d6ec2e: runtime(netrw): correct wrong version check

The version check introduced with commit edd4ac3e8 has a logic error.
Also it should only trigger when trying to use the netrw plugin and not
always.

fixes: vim/vim#16541

https://github.com/vim/vim/commit/6d6ec2ee054b93ea7705a584607956d06dadfe35

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

Diffstat:
Mruntime/pack/dist/opt/netrw/autoload/netrw.vim | 5+++++
Mruntime/plugin/netrwPlugin.vim | 5-----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw.vim b/runtime/pack/dist/opt/netrw/autoload/netrw.vim @@ -21,6 +21,11 @@ endif let g:loaded_netrw = "v176" +if !has("patch-9.1.1054") && !has('nvim') + echoerr 'netrw needs Vim v9.1.1054' + finish +endif + let s:keepcpo= &cpo setl cpo&vim "DechoFuncName 1 diff --git a/runtime/plugin/netrwPlugin.vim b/runtime/plugin/netrwPlugin.vim @@ -1,10 +1,5 @@ " Load the netrw package. -if !has("patch-9.1.1054") || !has('nvim') - echoerr 'netrw needs vim v9.1.1054' - finish -endif - if &cp || exists("g:loaded_netrw") || exists("g:loaded_netrwPlugin") finish endif