Skip to content

Commit 30b8ac7

Browse files
committed
check the presence of fern#util#expand itself
1 parent a6971d1 commit 30b8ac7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugin/fern_hijack.vim

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ function! s:suppress_netrw() abort
2020
endfunction
2121

2222
function! s:expand(expr) abort
23-
try
24-
if exists('g:loaded_fern')
25-
return fern#util#expand(a:expr)
26-
endif
27-
catch /^Vim\%((\a\+)\)\=:E117:/
28-
endtry
23+
if exists('fern#util#expand')
24+
return fern#util#expand(a:expr)
25+
endif
2926
return expand(a:expr)
3027
endfunction
3128

0 commit comments

Comments
 (0)