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 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sI0Rr-00BuYY-8d%40256bit.org.