Skip to content

Commit

Permalink
Split paths by both backslash and forward slash on Windows
Browse files Browse the repository at this point in the history
May close #478
  • Loading branch information
lambdalisue committed Oct 15, 2024
1 parent 2cf57c6 commit 473a94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/fern/internal/filepath.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ endfunction

function! s:to_slash_windows(path) abort
let prefix = s:is_absolute_windows(a:path) ? '/' : ''
let terms = filter(split(a:path, '\\'), '!empty(v:val)')
let terms = filter(split(a:path, '\\/'), '!empty(v:val)')
return prefix . join(terms, '/')
endfunction

Expand Down

0 comments on commit 473a94e

Please sign in to comment.