We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5989a1a + c3dbeb9 commit f655248Copy full SHA for f655248
plugin/fern_hijack.vim
@@ -19,12 +19,12 @@ function! s:suppress_netrw() abort
19
endif
20
endfunction
21
22
+" Called every BufEnter, but checks if fern#util#expand exists, thus preventing unnecessary load of fern.vim.
23
function! s:expand(expr) abort
- try
24
+ if exists('fern#util#expand')
25
return fern#util#expand(a:expr)
- catch /^Vim\%((\a\+)\)\=:E117:/
26
- return expand(a:expr)
27
- endtry
+ endif
+ return expand(a:expr)
28
29
30
augroup fern-hijack
0 commit comments