Skip to content

Commit 6e4b08b

Browse files
committed
Remove leading ./ to properly reveal nodes
Close #393
1 parent 89ebaf5 commit 6e4b08b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/fern/internal/viewer.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ endfunction
2020

2121
function! fern#internal#viewer#reveal(helper, path) abort
2222
let path = fern#internal#filepath#to_slash(a:path)
23+
let path = substitute(path, '^\./', '', '')
2324
let reveal = split(path, '/')
2425
let previous = a:helper.sync.get_cursor_node()
2526
return s:Promise.resolve()

0 commit comments

Comments
 (0)