aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-14 16:28:55 +0800
committerGitHub <noreply@github.com>2024-06-14 16:28:55 +0800
commit874869321a3a1695ba362dcb2e8334c8742c90a3 (patch)
tree2440aea03910d5ee086e499477c3785369429afb
parent5def8714ad70e71e07773960269fff5c0c95e7ab (diff)
downloadrneovim-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.vim2
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