vim-patch:4407461: runtime(netrw): correctly test for windows in NetrwGlob() (#29330)

use has("win32") instead of has("win64") otherwise it
won't work on x86 systems.

440746158c

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2024-06-14 16:28:55 +08:00 committed by GitHub
parent 5def8714ad
commit 874869321a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5759,7 +5759,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