mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-02-21 01:42:55 +08:00
don't rely on NR for checking that NrrRgn is loaded
This fixes issue when using Plug to conditionally loading NrrRgn: Plug 'chrisbra/NrrwRgn', {'on': ['NR', 'NW', 'NRV', 'NW', 'NarrowRegion']} The command will exist but the plugin has not been loaded yet which gives a warning message.
This commit is contained in:
parent
768bd0f5c6
commit
c4ee72f2d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user