Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions plugin/fern_hijack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ function! s:suppress_netrw() abort
endif
endfunction

" Called every BufEnter, but checks if fern#util#expand exists, thus preventing unnecessary load of fern.vim.
function! s:expand(expr) abort
try
if exists('fern#util#expand')
return fern#util#expand(a:expr)
catch /^Vim\%((\a\+)\)\=:E117:/
return expand(a:expr)
endtry
endif
return expand(a:expr)
endfunction

augroup fern-hijack
Expand Down