From 440746158ce0fec2880ccacc03f39dbc954c5543 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Fri, 14 Jun 2024 08:19:22 +0200 Subject: [PATCH] runtime(netrw): correctly test for windows in NetrwGlob() use has("win32") instead of has("win64") otherwise it won't work on x86 systems. Signed-off-by: Christian Brabandt --- runtime/autoload/netrw.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim index ef574773a4..d8de432add 100644 --- a/runtime/autoload/netrw.vim +++ b/runtime/autoload/netrw.vim @@ -5801,7 +5801,7 @@ fun! s:NetrwGlob(direntry,expr,pare) let w:netrw_liststyle= keep_liststyle else let path= s:ComposePath(fnameescape(a:direntry),a:expr) - if has("win64") + if has("win32") " escape [ so it is not detected as wildcard character, see :h wildcard let path= substitute(path, '[', '[[]', 'g') endif