Mercurial > vim
changeset 35404:d4611ebbdaa4
runtime(netrw): correctly test for windows in NetrwGlob()
Commit: https://github.com/vim/vim/commit/440746158ce0fec2880ccacc03f39dbc954c5543
Author: Christian Brabandt <cb@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 <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 14 Jun 2024 08:30:06 +0200 |
parents | a14726ad28e6 |
children | 9a52a7b13fc5 |
files | runtime/autoload/netrw.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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