From 0ea569c4fa0daa6de635f088f5a8083d74ed954d Mon Sep 17 00:00:00 2001 From: Alisue Date: Wed, 25 Sep 2024 06:52:05 +0900 Subject: [PATCH] Split paths by both backslash and forward slash on Windows May close #478 --- autoload/fern/internal/filepath.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fern/internal/filepath.vim b/autoload/fern/internal/filepath.vim index ec49b83b..70faa4ab 100644 --- a/autoload/fern/internal/filepath.vim +++ b/autoload/fern/internal/filepath.vim @@ -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