]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): correctly handle shellslash variable
authorLuca Saccarola <github.e41mv@aleeas.com>
Fri, 28 Feb 2025 16:30:25 +0000 (17:30 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 28 Feb 2025 16:30:25 +0000 (17:30 +0100)
closes: #16758

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim

index 091fea2be5ba68d81442e36021396c1135978e82..2b987ed00a1dc07bae348f14f52487582dfcc561 100644 (file)
@@ -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 {{{