Skip to content

Commit

Permalink
Fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Jan 30, 2020
1 parent b3b2f28 commit bb4a379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/fern/scheme/file/fri.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ function! fern#scheme#file#fri#from_fri(fri) abort
let path = s:Path.from_slash(path)
let path = s:Path.abspath(path)
let path = s:Path.remove_last_separator(path)
let path = empty(path) ? '/' : path
return path
endfunction
1 change: 1 addition & 0 deletions autoload/fern/scheme/file/provider.vim
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function! s:node(path) abort
let path = s:Path.abspath(a:path)
let path = s:Path.remove_last_separator(path)
let path = simplify(path)
let path = empty(path) ? '/' : path
if empty(getftype(path))
throw printf("no such file or directory exists: %s", path)
endif
Expand Down

0 comments on commit bb4a379

Please sign in to comment.