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

6d6ec2ee05

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Jaehwang Jung
2025-09-13 01:05:37 +09:00
parent 90018d2b36
commit 98e51d2e0d
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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