Merge pull request #2175 from skeept/patch-1

don't rely on NR for checking that NrrRgn is loaded
This commit is contained in:
Christian Brabandt 2020-07-14 11:36:33 +02:00 committed by GitHub
commit 767107070e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,7 +370,7 @@ function! airline#extensions#load()
call add(s:loaded_ext, 'promptline')
endif
if get(g:, 'airline#extensions#nrrwrgn#enabled', 1) && exists(':NR') == 2
if get(g:, 'airline#extensions#nrrwrgn#enabled', 1) && get(g:, 'loaded_nrrw_rgn', 0)
call airline#extensions#nrrwrgn#init(s:ext)
call add(s:loaded_ext, 'nrrwrgn')
endif