runtime(netrw): correctly handle shellslash variable
Commit:
https://github.com/vim/vim/commit/da53af57a7c72e95f84fc0a0b99ae460ff8dab78
Author: Luca Saccarola <
github...@aleeas.com>
Date: Fri Feb 28 17:30:25 2025 +0100
runtime(netrw): correctly handle shellslash variable
closes:
https://github.com/vim/vim/issues/16758
Signed-off-by: Luca Saccarola <
github...@aleeas.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim b/runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim
index 091fea2be..2b987ed00 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 {{{