Skip to content

Commit

Permalink
Remove leading ./ to properly reveal nodes
Browse files Browse the repository at this point in the history
Close #393
  • Loading branch information
lambdalisue committed Feb 13, 2022
1 parent 89ebaf5 commit 6e4b08b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/fern/internal/viewer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ endfunction

function! fern#internal#viewer#reveal(helper, path) abort
let path = fern#internal#filepath#to_slash(a:path)
let path = substitute(path, '^\./', '', '')
let reveal = split(path, '/')
let previous = a:helper.sync.get_cursor_node()
return s:Promise.resolve()
Expand Down

0 comments on commit 6e4b08b

Please sign in to comment.