diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-06-14 16:28:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 16:28:55 +0800 |
commit | 874869321a3a1695ba362dcb2e8334c8742c90a3 (patch) | |
tree | 2440aea03910d5ee086e499477c3785369429afb | |
parent | 5def8714ad70e71e07773960269fff5c0c95e7ab (diff) | |
download | rneovim-874869321a3a1695ba362dcb2e8334c8742c90a3.tar.gz rneovim-874869321a3a1695ba362dcb2e8334c8742c90a3.tar.bz2 rneovim-874869321a3a1695ba362dcb2e8334c8742c90a3.zip |
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.
https://github.com/vim/vim/commit/440746158ce0fec2880ccacc03f39dbc954c5543
Co-authored-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 81cd66bc04..7da97c9690 100644 --- a/runtime/autoload/netrw.vim +++ b/runtime/autoload/netrw.vim @@ -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 |