Commit: runtime(netrw): correctly test for windows in NetrwGlob()

4 views
Skip to first unread message

Christian Brabandt

unread,
Jun 14, 2024, 2:30:13 AM6/14/24
to vim...@googlegroups.com
runtime(netrw): correctly test for windows in NetrwGlob()

Commit: https://github.com/vim/vim/commit/440746158ce0fec2880ccacc03f39dbc954c5543
Author: Christian Brabandt <c...@256bit.org>
Date: Fri Jun 14 08:19:22 2024 +0200

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 <c...@256bit.org>

diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index ef574773a..d8de432ad 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
Reply all
Reply to author
Forward
0 new messages