diff options
author | Christian Brabandt <cb@256bit.org> | 2024-06-14 08:19:22 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-14 08:19:22 +0200 |
commit | 440746158ce0fec2880ccacc03f39dbc954c5543 (patch) | |
tree | ac17716f2c50b3f02a88a38c38bc03ef4effd11e | |
parent | 1487947fb625d44ed02382ea6b0d5bf72b12583a (diff) |
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>
-rw-r--r-- | runtime/autoload/netrw.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |