From: Luca Saccarola Date: Fri, 28 Feb 2025 16:30:25 +0000 (+0100) Subject: runtime(netrw): correctly handle shellslash variable X-Git-Tag: v9.1.1158~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da53af57a7c72e95f84fc0a0b99ae460ff8dab78;p=thirdparty%2Fvim.git runtime(netrw): correctly handle shellslash variable closes: #16758 Signed-off-by: Luca Saccarola Signed-off-by: Christian Brabandt --- diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim b/runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim index 091fea2be5..2b987ed00a 100644 --- a/runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim +++ b/runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim @@ -2,7 +2,7 @@ " THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND " BREAKAGES IF USED OUTSIDE OF NETRW.VIM ARE EXPECTED. -let s:slash = &shellslash ? '/' : '\' +let s:slash = !exists('+shellslash') || &shellslash ? '/' : '\' " netrw#fs#PathJoin: Appends a new part to a path taking different systems into consideration {{{