vim-patch:da53af5: runtime(netrw): correctly handle shellslash variable

closes: vim/vim#16758

da53af57a7

Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
This commit is contained in:
Jaehwang Jung
2025-09-13 01:12:11 +09:00
parent 192839a328
commit a6412b3d53

View File

@@ -2,7 +2,7 @@
" THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND " THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND
" BREAKAGES IF USED OUTSIDE OF NETRW.VIM ARE EXPECTED. " 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 {{{ " netrw#fs#PathJoin: Appends a new part to a path taking different systems into consideration {{{