Skip to content

Commit da53af5

Browse files
saccarosiumchrisbra
authored andcommitted
runtime(netrw): correctly handle shellslash variable
closes: #16758 Signed-off-by: Luca Saccarola <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 3255af8 commit da53af5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • runtime/pack/dist/opt/netrw/autoload/netrw

runtime/pack/dist/opt/netrw/autoload/netrw/fs.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" THESE FUNCTIONS DON'T COMMIT TO ANY BACKWARDS COMPATIBILITY. SO CHANGES AND
33
" BREAKAGES IF USED OUTSIDE OF NETRW.VIM ARE EXPECTED.
44

5-
let s:slash = &shellslash ? '/' : '\'
5+
let s:slash = !exists('+shellslash') || &shellslash ? '/' : '\'
66

77
" netrw#fs#PathJoin: Appends a new part to a path taking different systems into consideration {{{
88

0 commit comments

Comments
 (0)