fern: enable fern again

fern.vim decided to remove the global variable `g:fern_loaded` in
f9404e8a59b6a74b15a5

So adjust to use the correct variable name `g:loaded_fern`.

fixes #2346
This commit is contained in:
Christian Brabandt 2022-08-09 11:59:19 +02:00
parent 66a6e03a34
commit 61042e3502
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -167,7 +167,7 @@ function! airline#extensions#load()
call add(s:loaded_ext, 'gina')
endif
if get(g:, 'fern_loaded', 0) && get(g:, 'airline#extensions#fern#enabled', 1)
if get(g:, 'loaded_fern', 0) && get(g:, 'airline#extensions#fern#enabled', 1)
call airline#extensions#fern#init(s:ext)
call add(s:loaded_ext, 'fern')
endif