runtime(netrw): correctly handle shellslash variable Commit: https://github.com/vim/vim/commit/da53af57a7c72e95f84fc0a0b99ae460ff8dab78 Author: Luca Saccarola <github.e4...@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.e4...@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 {{{ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1to3U7-000oNC-Ee%40256bit.org.