Skip to content

Commit 0ea569c

Browse files
committed
Split paths by both backslash and forward slash on Windows
May close #478
1 parent a675dff commit 0ea569c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/fern/internal/filepath.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ endfunction
4040

4141
function! s:to_slash_windows(path) abort
4242
let prefix = s:is_absolute_windows(a:path) ? '/' : ''
43-
let terms = filter(split(a:path, '\\'), '!empty(v:val)')
43+
let terms = filter(split(a:path, '\\/'), '!empty(v:val)')
4444
return prefix . join(terms, '/')
4545
endfunction
4646

0 commit comments

Comments
 (0)