]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): correctly test for windows in NetrwGlob()
authorChristian Brabandt <cb@256bit.org>
Fri, 14 Jun 2024 06:19:22 +0000 (08:19 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 14 Jun 2024 06:19:22 +0000 (08:19 +0200)
use has("win32") instead of has("win64") otherwise it
won't work on x86 systems.

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/netrw.vim

index ef574773a4a1a408f50f882bc2a90fd477c3e6c1..d8de432add63e412c15ea931bfec9cf3c681d1b7 100644 (file)
@@ -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