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 <cb@256bit.org>
This commit is contained in:
@ -5801,7 +5801,7 @@ fun! s:NetrwGlob(direntry,expr,pare)
|
|||||||
let w:netrw_liststyle= keep_liststyle
|
let w:netrw_liststyle= keep_liststyle
|
||||||
else
|
else
|
||||||
let path= s:ComposePath(fnameescape(a:direntry),a:expr)
|
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
|
" escape [ so it is not detected as wildcard character, see :h wildcard
|
||||||
let path= substitute(path, '[', '[[]', 'g')
|
let path= substitute(path, '[', '[[]', 'g')
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user