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 Sep 24, 2024
1 parent a675dff commit 0ea569c
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 0ea569c

Please sign in to comment.