Skip to content

Commit a6971d1

Browse files
committed
changed to use g:loaded_fern
1 parent 5ca487d commit a6971d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/fern_hijack.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ endfunction
2121

2222
function! s:expand(expr) abort
2323
try
24-
return fern#util#expand(a:expr)
24+
if exists('g:loaded_fern')
25+
return fern#util#expand(a:expr)
26+
endif
2527
catch /^Vim\%((\a\+)\)\=:E117:/
26-
return expand(a:expr)
2728
endtry
29+
return expand(a:expr)
2830
endfunction
2931

3032
augroup fern-hijack

0 commit comments

Comments
 (0)