Skip to content

Commit 4f78ca1

Browse files
authored
Preserve literal backslashes on non-Windows #174
Unix filenames may contain literal backslashes. fixes #173
1 parent 7563e4c commit 4f78ca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dirvish.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endfunction
1515

1616
" Normalize slashes for safe use of fnameescape(), isdirectory(). Vim bug #541.
1717
function! s:sl(path) abort
18-
return tr(a:path, '\', '/')
18+
return has('win32') ? tr(a:path, '\', '/') : a:path
1919
endfunction
2020

2121
function! s:normalize_dir(dir, silent) abort

0 commit comments

Comments
 (0)